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
}
}
Retrieve a single routing rule by ID
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
}
}
rules:readcurl -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
}
}
404: rule not found or outside workspaceWas this page helpful?