Contacts
Retrieve contact
Contacts
Retrieve contact
Retrieve a contact by its ID.
GET
/
chatbots
/
{chatbotId}
/
contacts
/
{contactId}
curl --request GET \
--url https://api.chatling.ai/v2/chatbots/{chatbotId}/contacts/{contactId} \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"data": {
"id": "qtr89df0-112d-d197-b541-3f8674663246",
"name": "Mark Zuckerberg",
"email": "[email protected]",
"job_title": "CEO",
"phone": "555-555-5555",
"website": "https://meta.com",
"company": "Meta Inc.",
"created_at": "2024-06-08T13:38:33+00:00"
}
}
Request parameters
Path
contactId
string
requiredThe contact ID.
chatbotId
string
requiredThe chatbot ID.
Response
status
string
The status of the request. Will be success
if the request was successful, otherwise error
.
data
object
id
integer
The unique identifier of the contact.
name
string
The name of the contact.
email
string
The email address of the contact.
job_title
string
The job title of the contact.
phone
string
The phone number of the contact.
website
string
The website URL of the contact.
company
string
The company name of the contact.
created_at
string
The date and time when the contact was created.
{
"status": "success",
"data": {
"id": "qtr89df0-112d-d197-b541-3f8674663246",
"name": "Mark Zuckerberg",
"email": "[email protected]",
"job_title": "CEO",
"phone": "555-555-5555",
"website": "https://meta.com",
"company": "Meta Inc.",
"created_at": "2024-06-08T13:38:33+00:00"
}
}
curl --request GET \
--url https://api.chatling.ai/v2/chatbots/{chatbotId}/contacts/{contactId} \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"data": {
"id": "qtr89df0-112d-d197-b541-3f8674663246",
"name": "Mark Zuckerberg",
"email": "[email protected]",
"job_title": "CEO",
"phone": "555-555-5555",
"website": "https://meta.com",
"company": "Meta Inc.",
"created_at": "2024-06-08T13:38:33+00:00"
}
}