Campaigns
curl -X GET "https://example.com/apps/string/campaigns"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
appId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/apps/string/campaigns" \ -H "Content-Type: application/json" \ -d '{ "name": "Summer Newsletter", "subject": "Our summer deals are here 🌞", "fromEmail": "hello@yourdomain.com", "templateId": "tpl_abc123", "domainId": "dom_abc123", "audienceId": "aud_abc123" }'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X GET "https://example.com/apps/string/campaigns/string"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://example.com/apps/string/campaigns/string" \ -H "Content-Type: application/json" \ -d '{}'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X DELETE "https://example.com/apps/string/campaigns/string"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/cancel"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/ab-test/cancel"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/ab-test/select-winner" \ -H "Content-Type: application/json" \ -d '{ "variantId": "clx1234567890" }'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/send"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/test" \ -H "Content-Type: application/json" \ -d '{ "to": "test@exemple.com" }'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/test-seed-list"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X POST "https://example.com/apps/string/campaigns/string/duplicate"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X GET "https://example.com/apps/string/campaigns/string/sends/export"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Query Parameters
status*string
Response Body
curl -X GET "https://example.com/apps/string/campaigns/string/sends?status=string"Empty