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
}
}
Links and Rules
Get Rule
Retrieve a single routing rule by ID
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
}
}
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
Was this page helpful?

