Contacts
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
Query Parameters
status*string
q*string
attrKey*string
attrValue*string
Response Body
application/json
curl -X GET "https://example.com/projects/string/contacts?status=string&q=string&attrKey=string&attrValue=string"{ "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 AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
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/contacts" \ -H "Content-Type: application/json" \ -d '{ "email": "contact@example.com" }'{ "id": "string", "email": "contact@exemple.com", "attributes": {}, "unsubscribed": true, "appId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
Response Body
text/csv
curl -X GET "https://example.com/projects/string/contacts/export""string"Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
Response Body
application/json
curl -X POST "https://example.com/projects/string/contacts/import"{ "imported": 0, "skipped": 0}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
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/contacts/batch" \ -H "Content-Type: application/json" \ -d '{}'{ "imported": 0, "skipped": 0}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
projectId*string
Response Body
application/json
curl -X GET "https://example.com/projects/string/contacts/string"{ "id": "string", "email": "contact@exemple.com", "attributes": {}, "unsubscribed": true, "appId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
projectId*string
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/contacts/string" \ -H "Content-Type: application/json" \ -d '{ "attributes": { "firstName": "Jane", "plan": "pro" } }'{ "id": "string", "email": "contact@exemple.com", "attributes": {}, "unsubscribed": true, "appId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
projectId*string
Response Body
application/json
curl -X DELETE "https://example.com/projects/string/contacts/string"{ "deleted": true}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
projectId*string
Response Body
application/json
curl -X PATCH "https://example.com/projects/string/contacts/string/unsubscribe"{ "id": "string", "email": "contact@exemple.com", "attributes": {}, "unsubscribed": true, "appId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
projectId*string
Response Body
application/json
curl -X PATCH "https://example.com/projects/string/contacts/string/resubscribe"{ "id": "string", "email": "contact@exemple.com", "attributes": {}, "unsubscribed": true, "appId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}