curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_conversations/{conversation_id}/whatsapp_messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"message": {
"content": "Hello, how can I help you today?",
"message_type": "text"
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "<string>",
"content": "<string>",
"status": "<string>",
"whatsapp_message_id": "<string>",
"metadata": {},
"media_url": "<string>",
"message_type_data": {
"text": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}WhatsApp Messages
Send a new WhatsApp message
Sends a new message through WhatsApp Cloud API and creates the message record
POST
/
whatsapp_conversations
/
{conversation_id}
/
whatsapp_messages
curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_conversations/{conversation_id}/whatsapp_messages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"message": {
"content": "Hello, how can I help you today?",
"message_type": "text"
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "<string>",
"content": "<string>",
"status": "<string>",
"whatsapp_message_id": "<string>",
"metadata": {},
"media_url": "<string>",
"message_type_data": {
"text": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}{
"error": "Resource not found",
"status": 404,
"message": "The requested resource could not be found"
}⌘I

