curl -X POST https://zeplo.ai/api/v1/messages/reply \
-H "x-api-key: zeplo_ak_abc123..." \
-H "x-api-secret: zeplo_as_abc123..." \
-H "x-channel-id: 647015955153740" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"messageType": "text",
"content": {
"text": "Hello! How can I help you?"
}
}'
REST API v1 (External)
POST Send Reply Message (v1)
Send a reply message via the external API.
POST
/
api
/
v1
/
messages
/
reply
curl -X POST https://zeplo.ai/api/v1/messages/reply \
-H "x-api-key: zeplo_ak_abc123..." \
-H "x-api-secret: zeplo_as_abc123..." \
-H "x-channel-id: 647015955153740" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"messageType": "text",
"content": {
"text": "Hello! How can I help you?"
}
}'
Send reply message (v1)
POST /api/v1/messages/reply
Send a text or media reply message to a contact.
Headers
string
required
Your API key
string
required
Your API secret key
string
required
WhatsApp channel ID
Body parameters
string
required
Recipient phone with country code.
string
required
Message type:
text, image, document, audio, video.object
required
Message content object (shape depends on message type).
curl -X POST https://zeplo.ai/api/v1/messages/reply \
-H "x-api-key: zeplo_ak_abc123..." \
-H "x-api-secret: zeplo_as_abc123..." \
-H "x-channel-id: 647015955153740" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"messageType": "text",
"content": {
"text": "Hello! How can I help you?"
}
}'
Message types
| Type | Content shape |
|---|---|
text | {"text": "..."} |
image | {"url": "...", "caption": "..."} |
document | {"url": "...", "caption": "...", "filename": "..."} |
audio | {"url": "..."} |
video | {"url": "...", "caption": "..."} |
Get message status
GET /api/v1/messages/status/:messageId
string
required
Message ID.
curl https://zeplo.ai/api/v1/messages/status/msg_abc123 \
-H "x-api-key: zeplo_ak_abc123..." \
-H "x-api-secret: zeplo_as_abc123..." \
-H "x-channel-id: 647015955153740"
Get message history
GET /api/v1/messages/:contactPhone
string
required
Contact phone number.
curl https://zeplo.ai/api/v1/messages/919876543210 \
-H "x-api-key: zeplo_ak_abc123..." \
-H "x-api-secret: zeplo_as_abc123..." \
-H "x-channel-id: 647015955153740"
