POST
/
chatbots
/
{chatbotId}
/
contacts
Create contact
curl --request POST \
  --url https://api.chatling.ai/v2/chatbots/{chatbotId}/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "properties": {
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "job_title": "<string>",
    "company_name": "<string>",
    "website_url": "<string>",
    "industry": "<string>",
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>",
    "country": "<string>"
  }
}'
{
    "status": "success",
    "data": {
        "id": "qtr89df0-112d-d197-b541-3f8674663246"
    }
}

Request parameters

Path

chatbotId
string
required
The chatbot ID.

Body

properties
object
At least one of the following properties is required.

Response

status
string
The status of the request. Will be success if the request was successful, otherwise error.
data
object
{
    "status": "success",
    "data": {
        "id": "qtr89df0-112d-d197-b541-3f8674663246"
    }
}