General Documentation
Agents
Agent Executions
Test Suites
Projects
WhatsApp Conversations
Customers
WhatsApp Configs
Agent Test Chats
Conversation Assignments
WhatsApp Templates
WhatsApp Contact Notes
Agent Snapshots
Customers
Create a new customer
Creates a new customer for the project
POST
/
customers
Copy
curl --request POST \
--url https://app.kapso.ai/api/v1/customers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"customer": {
"name": "New Client",
"external_customer_id": "CLIENT-456"
}
}'
Copy
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Example Client",
"external_customer_id": "CLIENT-123",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Authorizations
API key required for all endpoints
Body
application/json
Response
201
application/json
Customer created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://app.kapso.ai/api/v1/customers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"customer": {
"name": "New Client",
"external_customer_id": "CLIENT-456"
}
}'
Copy
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Example Client",
"external_customer_id": "CLIENT-123",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.