API documentationBahasa Indonesia
POST/api/v2/conversations/{id}/messages
Reply to a conversation
Reply with text or a file in a conversation the key's creator can see, on any channel the Inbox can reply on.
WhatsApp Official needs the 24-hour window; outside it, send a template with Send a message. Test keys only reply to conversations with test numbers. Use Idempotency-Key.
Send an Idempotency-Key header (for example a new UUID per request). A repeat with the same key within 24 hours gets the first answer again, so nothing is sent twice.
Path parameters
idintegerrequiredConversation id.
Body (JSON)
typestring: text | image | video | audio | documentDefault
text.textobject{ "body": "…" }.mediaobjectSame as Send a message.
Possible errors
- 400
invalid_jsonBody is not valid JSON - 400
idempotency_key_invalidInvalid Idempotency-Key - 401
missing_keyAPI key not sent - 401
key_invalidUnknown API key - 401
key_revokedAPI key revoked - 401
key_expiredAPI key expired - 401
member_inactiveKey creator is no longer a member - 403
ip_not_allowedServer IP not in the key's list - 403
plan_no_apiPlan does not include the API for live keys - 403
tenant_blockedBusiness access suspended - 403
scope_missingKey lacks this permission - 403
permission_missingKey creator's role lacks this permission - 403
test_number_requiredTest keys send only to test numbers - 403
channel_not_allowedChannel not allowed for this key - 403
channel_pausedChannel paused - 404
not_foundNot found - 409
idempotency_conflictIdempotency-Key used for different content - 409
request_in_progressThe same request is still being processed - 409
channel_unavailableNo usable WhatsApp number - 409
window_closedOutside the 24-hour window - 413
media_too_largeFile too large - 422
invalid_requestInvalid field - 422
invalid_phoneInvalid destination number - 422
message_too_longMessage too long - 422
contact_blockedContact blocked or unsubscribed - 429
rate_limitedToo many requests per minute - 429
daily_limitDaily message limit reached - 500
internal_errorProblem at Klik Flow - 502
send_failedMessage failed to send
Try it
Try it with a test key
/api/v2/conversations/{id}/messages