Contacts

Create a contact

A new contact of the project. Its address is its identity in any case; an address the project has is refused (409 `exx_contact_exists`).

POST
/contacts

A new contact of the project. Its address is its identity in any case; an address the project has is refused (409 exx_contact_exists).

Authorization

bearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
consent?|null
email*string

The identity in the project, in any case.

first_name?string|null
language?|

A BCP 47 language tag (an exx extension: the hosted pages' language), kept in its conventional case (pt-BR).

last_name?string|null
properties?|

Values of the project's properties by key, each of its property's type.

segments?array<>|

Static segments it joins.

timezone?|

An IANA time zone name (an exx extension: local-time sends).

topics?array<>|

Topic choices.

unsubscribed?|

The global subscription; absent: subscribed, unless the address was deleted while unsubscribed (it comes back unsubscribed).

Response Body

Success

application/json
  1. response
id*string
Formatuuid
object*string
Example Request
curl -X POST 'https://api.exx.sh/contacts' \  -H 'Content-Type: application/json' \  -d '{  "email": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}