Get Rule

Retrieves a specific rule from a campaign.

GET/campaigns/{campaign_id}/rules/{rule_id}

Path Parameters

campaign_idstringrequired

The campaign identifier (UUID).

rule_idstringrequired

The rule identifier (UUID).

Response

dataobject
Show data properties
idstring
rule_typestring
valuesstring[]
conditionalstring
metadata_keystring
statusstring
created_atstring
updated_atstring
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/campaigns/<campaign_id>/rules/<rule_id>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "data": {
    "id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
    "rule_type": "PAYMENT_STATUS",
    "values": [
      "DECLINED"
    ],
    "conditional": "EQUAL",
    "metadata_key": null,
    "status": "ACTIVE",
    "created_at": "2025-07-01T12:05:00Z",
    "updated_at": "2025-07-01T12:05:00Z"
  }
}