Hellomateo API Documentation
Campaigns

Cancel Campaign

POST
/v1/campaigns/{id}/cancel

Cancels a scheduled campaign, or stops one that is still sending, and returns it with status cancelled. Messages not yet sent are cancelled; messages already sent stay sent. Cancelling a cancelled campaign returns it unchanged.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Unique identifier for the resource.

Formatuuid

Response Body

application/json

curl -X POST "https://api.getmateo.com/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "key": "string",  "name": "string",  "status": "cancelled",  "sendout_mode": "once",  "schedule": null,  "send_after": "2019-08-24T14:15:22Z",  "last_sendout_date": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}