Skip to main content
Delete Campaign
curl --request DELETE \
  --url https://api.agents.timepay.ai/api/v1/campaigns/{id} \
  --header 'Authorization: <authorization>'
{
  "success": true,
  "data":{
    "id" : "camp_abc123"
  },
  "message": "Campaign deleted successfully"
}

Headers

Authorization
string
required
Bearer token for authentication (e.g., Bearer <your_token>).

Path Parameters

id
string
required
The Campaign Id to delete for (e.g., camp_abc123).

Response

success
boolean
Indicates if the deletion was successful.
message
string
A message confirming the action or describing the error.
error
string
The error type or code (Error responses only).
{
  "success": true,
  "data":{
    "id" : "camp_abc123"
  },
  "message": "Campaign deleted successfully"
}