curl --request POST \
--url https://app.kapso.ai/api/v1/customers/{customer_id}/whatsapp_configs \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_config": {
"name": "WhatsApp Business Account",
"phone_number_id": "1234567890",
"business_account_id": "98765432109",
"webhook_verify_token": "<string>",
"webhook_destination_url": "<string>",
"access_token": "<string>"
}
}'
{
"data": {
"id": "config-123abc",
"name": "Client WhatsApp",
"display_name": "Client WhatsApp (+1234567890)",
"phone_number_id": "1234567890",
"business_account_id": "98765432109",
"display_phone_number": "+56 9 61461262",
"display_phone_number_normalized": "56961461262",
"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"
}
}
Creates a new WhatsApp configuration for a specific customer
curl --request POST \
--url https://app.kapso.ai/api/v1/customers/{customer_id}/whatsapp_configs \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"whatsapp_config": {
"name": "WhatsApp Business Account",
"phone_number_id": "1234567890",
"business_account_id": "98765432109",
"webhook_verify_token": "<string>",
"webhook_destination_url": "<string>",
"access_token": "<string>"
}
}'
{
"data": {
"id": "config-123abc",
"name": "Client WhatsApp",
"display_name": "Client WhatsApp (+1234567890)",
"phone_number_id": "1234567890",
"business_account_id": "98765432109",
"display_phone_number": "+56 9 61461262",
"display_phone_number_normalized": "56961461262",
"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"
}
}
API key required for all endpoints
WhatsApp configuration created successfully
The response is of type object
.
Was this page helpful?