Skip to main content
GET
/
api
/
rules
/
{ruleId}
curl -X GET https://api.linquid.io/api/rules/rule_def456 \
  -H "Authorization: Bearer <token>"
{
  "success": true,
  "data": {
    "id": "rule_def456",
    "campaignId": "campaign_123",
    "linkId": null,
    "name": "Mobile Traffic",
    "type": "device",
    "conditions": {
      "devices": ["mobile"]
    },
    "destinationUrl": "https://example.com/mobile",
    "priority": 1,
    "enabled": true
  }
}
ruleId
string
required
Rule identifier

Access

  • Permission: rules:read
curl -X GET https://api.linquid.io/api/rules/rule_def456 \
  -H "Authorization: Bearer <token>"
{
  "success": true,
  "data": {
    "id": "rule_def456",
    "campaignId": "campaign_123",
    "linkId": null,
    "name": "Mobile Traffic",
    "type": "device",
    "conditions": {
      "devices": ["mobile"]
    },
    "destinationUrl": "https://example.com/mobile",
    "priority": 1,
    "enabled": true
  }
}

Common Errors

  • 404: rule not found or outside workspace