Audiences
curl -X GET "https://example.com/apps/string/audiences"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/audiences" \ -H "Content-Type: application/json" \ -d '{ "name": "Newsletter subscribers" }'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X GET "https://example.com/apps/string/audiences/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/audiences/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Clients VIP" }'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X DELETE "https://example.com/apps/string/audiences/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/audiences/string/rules" \ -H "Content-Type: application/json" \ -d '{ "match": "all", "conditions": [ { "field": "plan", "operator": "eq", "value": "pro" } ] }'Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X POST "https://example.com/apps/string/audiences/string/recompute"Empty
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
appId*string
Response Body
curl -X GET "https://example.com/apps/string/audiences/string/contacts"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/audiences/string/contacts" \ -H "Content-Type: application/json" \ -d '{ "contactId": "con_abc123" }'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/audiences/string/contacts/by-email" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com" }'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/audiences/string/contacts/bulk-email" \ -H "Content-Type: application/json" \ -d '{}'Empty
Authorization
bearer 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