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
WhatsApp Configs
Update WhatsApp config
Updates a WhatsApp configuration’s details
PATCH
/
whatsapp_configs
/
{config_id}
Copy
curl --request PATCH \
--url https://app.kapso.ai/api/v1/whatsapp_configs/{config_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_config": {
"name": "<string>",
"phone_number_id": "<string>",
"business_account_id": "<string>",
"webhook_verify_token": "<string>",
"webhook_destination_url": "<string>",
"access_token": "<string>"
}
}'
Copy
{
"data": {
"id": "config-123abc",
"name": "Client WhatsApp",
"display_name": "Client WhatsApp (+1234567890)",
"phone_number_id": "1234567890",
"business_account_id": "98765432109",
"webhook_verify_token": "<string>",
"webhook_destination_url": "<string>",
"customer_id": "customer-456def",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Authorizations
API key required for all endpoints
Path Parameters
Body
application/json
Response
200
application/json
WhatsApp configuration updated
The response is of type object
.
Copy
curl --request PATCH \
--url https://app.kapso.ai/api/v1/whatsapp_configs/{config_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_config": {
"name": "<string>",
"phone_number_id": "<string>",
"business_account_id": "<string>",
"webhook_verify_token": "<string>",
"webhook_destination_url": "<string>",
"access_token": "<string>"
}
}'
Copy
{
"data": {
"id": "config-123abc",
"name": "Client WhatsApp",
"display_name": "Client WhatsApp (+1234567890)",
"phone_number_id": "1234567890",
"business_account_id": "98765432109",
"webhook_verify_token": "<string>",
"webhook_destination_url": "<string>",
"customer_id": "customer-456def",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.