Conversation Organizations
The ID of the chatbot.
The date after which to filter organizations. Only organizations created before this date will be fetched.
2024-09-29T07:08:00ZThe amount of contacts to fetch
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/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"
}The ID of the chatbot.
The name of the organization.
Neue Firma GmbHThe email address of the organization.
info@neue-firma.deThe website URL of the organization.
https://neue-firma.deThe number of employees in the organization.
10The industry of the organization.
E-CommerceThe phone number of the organization.
+4915198765432Optional error message.
Invalid input data.
Insufficient permissions.
POST /v1/chatbots/{chatbotId}/organizations HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 269
{
"name": "Neue Firma GmbH",
"email": "info@neue-firma.de",
"website": "https://neue-firma.de",
"size": 10,
"industry": "E-Commerce",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"phoneNumber": "+4915198765432"
}{
"organization": {
"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"
}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}/organizations/search?query=text&page=1&pageSize=250 HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"results": {
"facetCounts": [
{
"counts": [
{
"count": 42,
"highlighted": "<em>whatsapp</em>",
"value": "whatsapp"
}
],
"fieldName": "channelType",
"stats": {
"max": 100,
"avg": 45.5,
"min": 1,
"sum": 1820
}
}
],
"found": 42,
"hits": [
{
"organization": {
"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"
}
},
"highlights": [
{
"field": "content.text",
"matchedTokens": [
"text"
],
"snippet": "text"
}
],
"textMatch": "Musterfirma GmbH Software"
}
],
"outOf": 500,
"page": 1,
"searchTimeMs": 12
},
"error": "text"
}The ID of the chatbot.
The Id of the organization to add a contact to.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/organizations/{organizationId}/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 Id of the organization to add a contact to.
Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/organizations/{organizationId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"organization": {
"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"
}The ID of the chatbot.
The Id of the organization to add a contact to.
Indicates whether the organization was successfully deleted.
trueOptional error message.
Insufficient permissions.
DELETE /v1/chatbots/{chatbotId}/organizations/{organizationId} 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 organization to add a contact to.
Optional error message.
Invalid input data.
Insufficient permissions.
PATCH /v1/chatbots/{chatbotId}/organizations/{organizationId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 303
{
"organization": {
"name": "Updated Firma GmbH",
"email": "updated@firma.de",
"website": "https://updated-firma.de",
"size": 100,
"industry": "Technology",
"address": {
"street": "Example Street",
"country": "Germany",
"zipcode": "12345",
"houseNumber": "1a",
"location": "Berlin"
},
"variables": {
"customer_number": "KD-67890"
}
}
}{
"organization": {
"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"
}The ID of the chatbot.
The Id of the organization to add a contact to.
The number of contacts in the organization.
42Optional error message.
Insufficient permissions.
GET /v1/chatbots/{chatbotId}/organizations/{organizationId}/contacts/count HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"count": 42,
"error": "text"
}Last updated