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 Contacts
Update a WhatsApp contact
Update a WhatsApp contact’s profile name and metadata
PATCH
/
whatsapp_contacts
/
{identifier}
Copy
curl --request PATCH \
--url https://app.kapso.ai/api/v1/whatsapp_contacts/{identifier} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"contact": {
"profile_name": "John Doe - VIP Customer",
"metadata": {
"vip": true,
"subscription_tier": "premium"
}
}
}'
Copy
{
"data": {
"id": "contact-789ghi",
"wa_id": "1234567890",
"profile_name": "John Doe",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Authorizations
API key required for all endpoints
Path Parameters
Contact ID (UUID) or phone number
Example:
"contact-789ghi or 1234567890"
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
Copy
curl --request PATCH \
--url https://app.kapso.ai/api/v1/whatsapp_contacts/{identifier} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"contact": {
"profile_name": "John Doe - VIP Customer",
"metadata": {
"vip": true,
"subscription_tier": "premium"
}
}
}'
Copy
{
"data": {
"id": "contact-789ghi",
"wa_id": "1234567890",
"profile_name": "John Doe",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.