Skip to content
AchaduDevelopers
Operational APIGo to website
Dashboard
Developers/API/message_reply
Inbox

Prepare response

Registers an output response for delivery by the channel connector.

POST/inbox/conversations/{id}/replyinbox:write

Request

idstring · pathResource identifier.mandatory
contentstring · bodyResponse content.mandatory
typestring · bodyMessage type.optional
media_urlstring · bodyOptional media.optional
offer_idstring · bodyContextual offer.optional
use_duboolean · bodyMark DU as author.optional

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"
}'

Answer

200Operation completed
4xxError with code, message and request_id