Mailmus

Campaigns

GET
/apps/{appId}/campaigns
AuthorizationBearer <token>

In: header

Path Parameters

appId*string

Response Body

curl -X GET "https://example.com/apps/string/campaigns"
Empty
POST
/apps/{appId}/campaigns
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
GET
/apps/{appId}/campaigns/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X GET "https://example.com/apps/string/campaigns/string"
Empty
PATCH
/apps/{appId}/campaigns/{id}
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
DELETE
/apps/{appId}/campaigns/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X DELETE "https://example.com/apps/string/campaigns/string"
Empty
POST
/apps/{appId}/campaigns/{id}/cancel
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X POST "https://example.com/apps/string/campaigns/string/cancel"
Empty
POST
/apps/{appId}/campaigns/{id}/ab-test/cancel
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
POST
/apps/{appId}/campaigns/{id}/ab-test/select-winner
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
POST
/apps/{appId}/campaigns/{id}/send
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X POST "https://example.com/apps/string/campaigns/string/send"
Empty
POST
/apps/{appId}/campaigns/{id}/test
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
POST
/apps/{appId}/campaigns/{id}/test-seed-list
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
POST
/apps/{appId}/campaigns/{id}/duplicate
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X POST "https://example.com/apps/string/campaigns/string/duplicate"
Empty
GET
/apps/{appId}/campaigns/{id}/sends/export
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
GET
/apps/{appId}/campaigns/{id}/sends
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