POST
/
whatsapp_messages
curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"message": {
"phone_number": "+1234567890",
"content": "Hello, how can I help you today?",
"message_type": "text"
}
}'
{
"data": {
"id": "msg-123abc",
"phone_number": "+1234567890",
"message_type": "text",
"content": "Hello, how can I help you today?",
"direction": "outbound",
"status": "sent",
"whatsapp_message_id": "wamid.HBgLMTIzNDU2Nzg5MAUCAw==",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Query Parameters

whatsapp_config_id
string

ID of the specific WhatsApp configuration to use

customer_id
string

ID of the customer whose WhatsApp configuration to use

phone_number
string

Phone number to send the message to (can also be provided in the message object)

Body

application/json

Response

201
application/json

Message created and sent successfully

The response is of type object.