TryzenAPI
Inbox

Queue a reply as the conversation's own sender

POST
/v1/inbox/conversations/{conversationId}/replies

Access: an API key (or an org-wide key naming the workspace) with the inboxReply flag.

Answers 202: the reply is stored as pending and sent later by the sender's worker, once. Re-sending the same clientMessageId returns the queued reply (created: false) instead of queueing it twice. A sender that was disconnected (or whose seat is inactive) can't send: 409 sender_disconnected; reconnect it first.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

conversationId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
text*string
Length1 <= length <= 8000
clientMessageId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

Default Response

application/json
  1. response
reply*
created*boolean
Example Request
curl -X POST 'https://api.tryzen.co/v1/inbox/conversations/string/replies' \  -H 'Content-Type: application/json' \  -d '{  "text": "string",  "clientMessageId": "6751c24a-b4eb-49b8-a2cb-e2427e57e61b"}'
Example Response
{  "reply": {    "id": "string",    "conversationId": "string",    "senderId": "string",    "clientMessageId": "6751c24a-b4eb-49b8-a2cb-e2427e57e61b",    "kind": "message",    "body": "string",    "status": "pending",    "requestedAt": "2019-08-24T14:15:22Z",    "requestedByUserId": "string",    "failure": {      "code": "string",      "message": "string"    },    "wait": {      "reason": "sending",      "until": "2019-08-24T14:15:22Z",      "expiresAt": "2019-08-24T14:15:22Z"    }  },  "created": true}