Messages
Authorizations
api_keystringRequired
Your Cekat API key. Obtain this by calling POST /register or from your Cekat dashboard under Settings → API.
Body
conversation_idstringOptional
UUID of the conversation to retrieve messages from.
receiverstringOptional
The receiver value.
messagestringOptionalExample:
Message content to send.
Haloooo bales dari apimedia_typestringOptionalExample:
The media type value.
locationheaderobjectOptional
The header value.
Responses
200
Successful response
No content
400
Bad request — check required fields and formats.
401
Unauthorized — API key is missing or invalid.
404
Resource not found.
post/messages/whatsapp
POST /messages/whatsapp HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 332
{
"conversation_id": "",
"receiver": "",
"message": "Haloooo bales dari api",
"media_type": "location",
"location": {
"latitude": "-6.2664324",
"longitude": "106.5917695",
"name": "Namam lokasi",
"address": "addresss lokasi"
},
"header": {},
"action": {
"name": "interactive_button",
"parameters": {
"display_text": "Chat Cust Service 12222",
"url": "test url"
}
}
}No content
Authorizations
api_keystringRequired
Your Cekat API key. Obtain this by calling POST /register or from your Cekat dashboard under Settings → API.
Query parameters
conversation_idstringOptional
UUID of the conversation to retrieve messages from.
Responses
200
Successful response
No content
400
Bad request — check required fields and formats.
401
Unauthorized — API key is missing or invalid.
404
Resource not found.
get/messages
GET /messages HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Accept: */*
No content
Last updated