Skip to main content
POST
/
contacts
Create a new contact
curl --request POST \
  --url https://api.cleartalk.ai/contacts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "listName": "<string>",
  "tag": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "dateOfBirth": "<string>",
  "contactSource": "<string>",
  "clearTalkNotes": "<string>",
  "customField": {}
}
'
{
  "id": 123,
  "userId": 123,
  "listName": "<string>",
  "tag": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "dateOfBirth": "<string>",
  "contactSource": "<string>",
  "clearTalkNotes": "<string>",
  "customField": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json
listName
string
required

List name for the contact

tag
string
required

Tag for the contact

firstName
string
required

First name of the contact

lastName
string
required

Last name of the contact

email
string
required

Email of the contact

phone
string
required

Phone number of the contact

dateOfBirth
string
required

Date of birth of the contact

contactSource
string
required

Source of the contact

clearTalkNotes
string
required

Notes for the contact

customField
object
required

Custom fields for the contact

Response

201 - application/json

Contact created successfully

id
number
required

Contact ID

userId
number
required

User ID

listName
string
required

List name for the contact

tag
string
required

Tag for the contact

firstName
string
required

First name of the contact

lastName
string
required

Last name of the contact

email
string
required

Email of the contact

phone
string
required

Phone number of the contact

dateOfBirth
string
required

Date of birth of the contact

contactSource
string
required

Source of the contact

clearTalkNotes
string
required

Notes for the contact

customField
object
required

Custom fields for the contact

createdAt
string<date-time>
required

Creation date

updatedAt
string<date-time>
required

Last update date