Audiences
Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/projects/string/audiences"[ { "id": "string", "name": "string", "type": "STATIC", "rules": {}, "appId": "string", "createdAt": "2019-08-24T14:15:22Z" }]Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/audiences" \ -H "Content-Type: application/json" \ -d '{ "name": "Newsletter subscribers" }'{ "id": "string", "name": "string", "type": "STATIC", "rules": {}, "appId": "string", "createdAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/projects/string/audiences/string"{ "id": "string", "name": "string", "type": "STATIC", "rules": {}, "appId": "string", "createdAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/projects/string/audiences/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Clients VIP" }'{ "id": "string", "name": "string", "type": "STATIC", "rules": {}, "appId": "string", "createdAt": "2019-08-24T14:15:22Z"}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X DELETE "https://example.com/projects/string/audiences/string"{ "deleted": true}Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/projects/string/audiences/string/rules" \ -H "Content-Type: application/json" \ -d '{ "match": "all", "conditions": [ { "field": "plan", "operator": "eq", "value": "pro" } ] }'{ "added": 0, "removed": 0}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X POST "https://example.com/projects/string/audiences/string/recompute"{ "added": 0, "removed": 0}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/projects/string/audiences/string/contacts"{ "data": [ { "id": "string", "email": "contact@exemple.com", "attributes": {}, "unsubscribed": true, "appId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "total": 0, "page": 0, "pages": 0}Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/audiences/string/contacts" \ -H "Content-Type: application/json" \ -d '{ "contactId": "con_abc123" }'{ "audienceId": "string", "contactId": "string"}Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/audiences/string/contacts/by-email" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com" }'{ "audienceId": "string", "contactId": "string"}Authorization
bearer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/projects/string/audiences/string/contacts/bulk-email" \ -H "Content-Type: application/json" \ -d '{}'{ "added": 0, "skipped": 0}Authorization
bearer In: header
Path Parameters
Response Body
application/json
curl -X DELETE "https://example.com/projects/string/audiences/string/contacts/string"{ "audienceId": "string", "contactId": "string"}