Boîte de réception
Préparer la réponse
Enregistre une réponse de sortie à transmettre par le connecteur de canal.
POST
/inbox/conversations/{id}/replyinbox:writeDemande
idstring · pathIdentificateur de ressource.obligatoirecontentstring · bodyContenu de la réponse.obligatoiretypestring · bodyType de message.facultatifmedia_urlstring · bodyMédia en option.facultatifoffer_idstring · bodyOffre contextuelle.facultatifuse_duboolean · bodyMark DU comme auteur.facultatifExemple
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"
}'Réponse
200Opération terminée4xxErreur avec le code, le message et request_id