Mailmus

Audiences

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

In: header

Path Parameters

appId*string

Response Body

curl -X GET "https://example.com/apps/string/audiences"
Empty
POST
/apps/{appId}/audiences
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/audiences" \  -H "Content-Type: application/json" \  -d '{    "name": "Newsletter subscribers"  }'
Empty
GET
/apps/{appId}/audiences/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X GET "https://example.com/apps/string/audiences/string"
Empty
PATCH
/apps/{appId}/audiences/{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/audiences/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Clients VIP"  }'
Empty
DELETE
/apps/{appId}/audiences/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X DELETE "https://example.com/apps/string/audiences/string"
Empty
PATCH
/apps/{appId}/audiences/{id}/rules
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/audiences/string/rules" \  -H "Content-Type: application/json" \  -d '{    "match": "all",    "conditions": [      {        "field": "plan",        "operator": "eq",        "value": "pro"      }    ]  }'
Empty
POST
/apps/{appId}/audiences/{id}/recompute
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X POST "https://example.com/apps/string/audiences/string/recompute"
Empty
GET
/apps/{appId}/audiences/{id}/contacts
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X GET "https://example.com/apps/string/audiences/string/contacts"
Empty
POST
/apps/{appId}/audiences/{id}/contacts
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/audiences/string/contacts" \  -H "Content-Type: application/json" \  -d '{    "contactId": "con_abc123"  }'
Empty
POST
/apps/{appId}/audiences/{id}/contacts/by-email
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/audiences/string/contacts/by-email" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com"  }'
Empty
POST
/apps/{appId}/audiences/{id}/contacts/bulk-email
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/audiences/string/contacts/bulk-email" \  -H "Content-Type: application/json" \  -d '{}'
Empty
DELETE
/apps/{appId}/audiences/{id}/contacts/{contactId}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
contactId*string
appId*string

Response Body

curl -X DELETE "https://example.com/apps/string/audiences/string/contacts/string"
Empty