Campaigns
Send Campaign
Sends a draft campaign now or schedules it for later and returns it with status scheduled. Delivery proceeds asynchronously. Optionally provide send_after to override the stored time; when omitted or null, the stored time is used, falling back to now. A time in the past makes the campaign eligible for immediate sending. Only draft campaigns can be sent. After an ambiguous timeout, retrieve the campaign to check its status before retrying.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Unique identifier for the resource.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
send_after?|
Send After value for this resource.
Response Body
application/json
curl -X POST "https://api.getmateo.com/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/send" \ -H "Content-Type: application/json" \ -d '{}'{ "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"}