POST
/
contacts
curl --request POST \
  --url https://wt.ls/api/v4/contacts \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "email": "<string>",
  "listId": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "phoneNumber": "<string>",
  "customData": {},
  "address": "<string>",
  "isGDPR": true,
  "name": "<string>",
  "instagram": "<string>",
  "twitter": "<string>",
  "website": "<string>",
  "company": "<string>",
  "country": "<string>",
  "city": "<string>"
}'
{
  "data": {
    "contact": {
      "id": "<string>",
      "email": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "phoneNumber": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "points": 123,
      "referrals": 123,
      "listId": "<string>",
      "isVerified": true,
      "unsubscribed": true,
      "customData": {},
      "address": "<string>",
      "isGDPR": true,
      "name": "<string>",
      "instagram": "<string>",
      "twitter": "<string>",
      "website": "<string>",
      "company": "<string>",
      "country": "<string>",
      "city": "<string>",
      "list": {},
      "audiences": [
        "<any>"
      ],
      "referralLink": "<string>",
      "privateLink": "<string>",
      "position": 123
    }
  }
}

Authorizations

apiKey
string
header
required

API key to authorize requests

Body

application/json

Response

201
application/json

Contact created successfully

The response is of type object.