Inbox
Prepare response
Registers an output response for delivery by the channel connector.
POST
/inbox/conversations/{id}/replyinbox:writeBEHAVIOR
The change is validated and persisted in the key account before responding. Query the returned resource as the source of truth.
EFFECT
It can change the resource and emit the corresponding domain event.
REPETITION
On network failure, confirm the resource status before retrying. Automatically redo only 429 and 5xx with backoff and jitter.
Request
idstring · pathResource identifier.minLength 2 · maxLength 100mandatorycontentstring · bodyResponse content.maxLength 6000mandatorytypestring · bodyMessage type.optionalmedia_urlstring · bodyOptional media.urioptionaloffer_idstring · bodyContextual offer.optionaluse_duboolean · bodyMark DU as author.optionalAuthorization
Bearer ach_live_...Accept
application/jsonScope
inbox:writeExecutable example
curl
curl -X POST 'https://achadu.com/api/v1/inbox/conversations/resource_id/reply' \
-H 'Authorization: Bearer ach_live_...' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"content": "I found a deal for you.",
"type": "string",
"media_url": "https://cdn.example.com/image.jpg",
"offer_id": "string"
}'Response and errors
Every response includes request_id. Lists add pagination; mutable resources return the persisted state after the operation.
200 application/json
{
"data": {
"id": "conv_01J...",
"channel": "instagram",
"status": "open",
"priority": "normal",
"intent": "find_offer",
"sentiment": "positive",
"unread_count": 1
},
"request_id": "req_01J..."
}200Operation completed.400Invalid parameter, body or transition.401Missing, invalid, expired or revoked key.402The account plan does not release this interface.403A chave precisa do escopo inbox:write.404Feature does not exist in this account.409The current state prevents this operation.413The JSON body exceeds 128 KB.429The 120 requests per minute window has been exceeded.