Conversation Contacts
The ID of the chatbot.
The search term.
The page on which to start the seach.
1The number of pages to return.
250Comma-separated list of IDs to be excluded from the search results.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/contacts/search?query=text&page=1&pageSize=250 HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"results": {
"facetCounts": [
{}
],
"found": 42,
"hits": [
{
"contact": {
"id": "59aBv7wzR9cxd1Pxyz",
"name": "Max Mustermann",
"created": "2025-10-05T10:00:00Z",
"updated": "2025-10-05T10:05:00Z",
"email": "max.mustermann@example.com",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4917612345678",
"variables": {
"customer_id": "12345"
},
"organizationIds": [
"uq8BxZaJd2wZR9cxd1P"
],
"whatsappId": "49123456789",
"telegramId": "123456789",
"facebookId": "10158123456789012",
"instagramId": "17841400123456789",
"avatar": "https://example.com/avatar.png"
},
"highlights": [
{}
],
"textMatch": "John Doe example@email.com"
}
],
"outOf": 1000,
"page": 1,
"searchTimeMs": 15
},
"error": "text"
}The ID of the chatbot.
The date after which to filter organizations. Only organizations created before this date will be fetched.
2025-09-29T07:08:00ZThe amount of contacts to fetch
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/contacts HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"contacts": [
{
"id": "59aBv7wzR9cxd1Pxyz",
"name": "Max Mustermann",
"created": "2025-10-05T10:00:00Z",
"updated": "2025-10-05T10:05:00Z",
"email": "max.mustermann@example.com",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4917612345678",
"variables": {
"customer_id": "12345"
},
"organizationIds": [
"uq8BxZaJd2wZR9cxd1P"
],
"whatsappId": "49123456789",
"telegramId": "123456789",
"facebookId": "10158123456789012",
"instagramId": "17841400123456789",
"avatar": "https://example.com/avatar.png"
}
],
"error": "text"
}The ID of the chatbot.
The name of the contact.
Max ExampleThe language of the contact.
ENThe email address of the contact.
max.mustermann@example.comThe phone number of the contact.
+4917612345678The WhatsApp ID of the contact.
49123456789The web channel ID of the contact.
web_abc123xyzThe Instagram ID of the contact.
17841400123456789The Facebook ID of the contact.
10158123456789012The Telegram ID of the contact.
123456789The ID of the contact with the external provider.
provider_abc123The URL to the avatar image of the contact.
https://example.com/avatar.pngOptional error message.
Invalid input data.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/contacts HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 322
{
"name": "Max Example",
"language": "EN",
"email": "max.mustermann@example.com",
"phoneNumber": "+4917612345678",
"whatsappId": "49123456789",
"webId": "web_abc123xyz",
"instagramId": "17841400123456789",
"facebookId": "10158123456789012",
"telegramId": "123456789",
"providerId": "provider_abc123",
"avatar": "https://example.com/avatar.png"
}{
"contact": {
"id": "59aBv7wzR9cxd1Pxyz",
"name": "Max Mustermann",
"created": "2025-10-05T10:00:00Z",
"updated": "2025-10-05T10:05:00Z",
"email": "max.mustermann@example.com",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4917612345678",
"variables": {
"customer_id": "12345"
},
"organizationIds": [
"uq8BxZaJd2wZR9cxd1P"
],
"whatsappId": "49123456789",
"telegramId": "123456789",
"facebookId": "10158123456789012",
"instagramId": "17841400123456789",
"avatar": "https://example.com/avatar.png"
},
"error": "text"
}The ID of the chatbot.
The Id of the contact to retrieve.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/contacts/{contactId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"contact": {
"id": "59aBv7wzR9cxd1Pxyz",
"name": "Max Mustermann",
"created": "2025-10-05T10:00:00Z",
"updated": "2025-10-05T10:05:00Z",
"email": "max.mustermann@example.com",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4917612345678",
"variables": {
"customer_id": "12345"
},
"organizationIds": [
"uq8BxZaJd2wZR9cxd1P"
],
"whatsappId": "49123456789",
"telegramId": "123456789",
"facebookId": "10158123456789012",
"instagramId": "17841400123456789",
"avatar": "https://example.com/avatar.png"
},
"error": "text"
}The ID of the chatbot.
The Id of the contact to delete.
Indicates whether the contact was successfully deleted.
trueOptional error message.
Insufficient permissions.
DELETE /v1/chatbots/{chatbotId}/contacts/{contactId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"deleted": true,
"error": "text"
}The ID of the chatbot.
The Id of the contact to retrieve.
Optional error message.
Insufficient permissions.
PATCH /v1/chatbots/{chatbotId}/contacts/{contactId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 367
{
"contact": {
"name": "Maximilian Example",
"email": "maximilian.mustermann@example.com",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4917612345678",
"variables": {
"customer_id": "12345"
},
"organizationIds": [
"uq8BxZaJd2wZR9cxd1P"
],
"avatar": "https://example.com/avatar.png",
"language": "EN"
}
}{
"contact": {
"id": "59aBv7wzR9cxd1Pxyz",
"name": "Max Mustermann",
"created": "2025-10-05T10:00:00Z",
"updated": "2025-10-05T10:05:00Z",
"email": "max.mustermann@example.com",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4917612345678",
"variables": {
"customer_id": "12345"
},
"organizationIds": [
"uq8BxZaJd2wZR9cxd1P"
],
"whatsappId": "49123456789",
"telegramId": "123456789",
"facebookId": "10158123456789012",
"instagramId": "17841400123456789",
"avatar": "https://example.com/avatar.png"
},
"error": "text"
}The ID of the chatbot.
The Id of the contact to retrieve.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/contacts/{contactId}/organizations HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"organizations": [
{
"id": "39aBv7wzR9cxd1Pxyz",
"name": "Example Company Ltd.",
"created": "2025-10-05T12:00:00Z",
"updated": "2025-10-05T12:05:00Z",
"email": "contact@examplecompany.de",
"website": "https://www.examplecompany.de",
"size": 50,
"industry": "Software Development",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"variables": {
"customer_number": "KD-12345"
}
}
],
"error": "text"
}Last updated