Get Campaign

Retrieves a single campaign by ID, including its rules.

GET/campaigns/{campaign_id}

Path Parameters

campaign_idstringrequired

The campaign identifier (UUID).

Response

OK

dataobject
Show data properties
idstring
namestring
account_idstring
organization_codestring
countrystring
channelstring
scheduleobject
Show schedule properties
daily_start_timestring
daily_end_timestring
time_zonestring
durationobject
Show duration properties
start_atstring
end_atstring
statusstring
rulesobject[]
Show rules properties
idstring
rule_typestring
valuesstring[]
conditionalstring
metadata_keystring
statusstring
created_atstring
updated_atstring
created_atstring
updated_atstring
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/campaigns/<campaign_id>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Declined Payment Recovery - Colombia",
    "account_id": "2404911d-5df9-429e-8488-ad41abea1a4b",
    "organization_code": "550e8400-e29b-41d4-a716-446655440000",
    "country": "CO",
    "channel": "WHATSAPP_MESSAGE",
    "schedule": {
      "daily_start_time": "08:00",
      "daily_end_time": "21:00",
      "time_zone": "America/Bogota"
    },
    "duration": {
      "start_at": "2025-07-01T00:00:00Z",
      "end_at": "2026-07-01T00:00:00Z"
    },
    "status": "ACTIVE",
    "rules": [
      {
        "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"
      }
    ],
    "created_at": "2025-07-01T12:00:00Z",
    "updated_at": "2025-07-01T12:00:00Z"
  }
}