TryzenAPI
Inbox

Where the thread's history backfill stands

GET
/v1/inbox/conversations/{conversationId}/history

Access: an API key (or an org-wide key naming the workspace) with view on inbox.

The state POST …/history answered, now. 404 history_not_requested when nobody asked for it; 404 conversation_not_found for a conversation you can't read.

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

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

Response Body

Default Response

application/json
  1. response
status*string
Value in"queued""running""complete""failed"
oldestSentAt*|null
completedAt*|null
requestedAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
reachedStart*boolean
pages*integer
Range0 <= value <= 9007199254740991
failure*|null
Example Request
curl -X GET 'https://api.tryzen.co/v1/inbox/conversations/string/history'
Example Response
{  "status": "queued",  "oldestSentAt": "2019-08-24T14:15:22Z",  "completedAt": "2019-08-24T14:15:22Z",  "requestedAt": "2019-08-24T14:15:22Z",  "reachedStart": true,  "pages": 0,  "failure": {    "code": "string",    "message": "string"  }}

Queue a reply as the conversation's own sender POST

**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.

Backfill the thread's older messages (one bounded read by its sender) POST

**Access:** an API key (or an org-wide key naming the workspace) with view on `inbox`. Queues ONE bounded read of the thread's older messages by its own sender (its lock, pacing, proxy and daily read budget): at most 10 pages of 20 messages, or back to 365 days, whichever comes first, read a few pages per inbox sync run, after that run's delta, in the sender's waking hours (07:00–23:00 sender-local). Both sides are stored with the sync's own direction and origin, deduped by LinkedIn's message URN; read them with `GET …/messages`. History never fires a webhook, never counts as a reply (no first reply, no sequence stop), never marks the thread unread or seen, and sends no read or delivery receipt. Answers 202 with the state; a repeat while it is queued, running or complete returns that state (`created: false`); a `failed` one is queued again. A session stop (`challenge`, `auth_lost`, `restricted`) ends it `failed` and is never retried by Tryzen. A conversation in a private mailbox you can't read is 404 `conversation_not_found`; a removed or disconnected sender is 422 `sender_not_connected`. Through an API key: 30 requests a minute per key (429 `rate_limited`).