POST
/
api
/
contacts
curl --request POST \
  --url https://api.atendai.com/api/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "number": "<string>",
  "email": "<string>",
  "profilePicUrl": "<string>",
  "isGroup": true,
  "isAdmin": true,
  "isOpen": true,
  "isBotEnabled": true,
  "utmCampaign": "<string>",
  "utmContent": "<string>",
  "utmMedium": "<string>",
  "utmSource": "<string>",
  "utmTerms": "<string>",
  "active": true,
  "channel": "<string>",
  "whatsappId": "<string>",
  "companyId": "<string>"
}'
{
  "id": "<string>",
  "message": "Contact created successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json
Contact created successfully

The response is of type object.