Create Campaign
Creates a new draft campaign. Call POST /v1/campaigns/{id}/send to send or schedule it; setting send_after alone does not schedule delivery. Channels without a priority are assigned the next free priority, starting at 1, in the order they are listed.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Unique identifier for the resource.
uuidUnique identifier of the related template version.
Human-readable name of the resource.
Send After value for this resource.
Placeholder Values value for this resource.
Require Marketing Opt In value for this resource.
Channels value for this resource.
Segment version ids, each stored as given.
Contact Lists value for this resource.
Response Body
application/json
curl -X POST "https://api.getmateo.com/v1/campaigns" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "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"}Cancel Campaign POST
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.
Get Campaign Analytics GET
Returns the requested campaign Analytics.