Chat

Read a thread back

What a thread of yours says, in order. Another account's thread answers 404 conversation_not_found, the answer a thread that never existed gets. Rewound messages are not the thread's any more and are left out, as the model is never sent them. Messages older than the retention window have been scrubbed and are left out like rewound ones, so a scrubbed thread reads back empty; a turn that continues one answers history_scrubbed: true. No message prints a charge: an answer carries its job_id, and GET /jobs/{id} answers what the turn cost from the ledger. It needs chat:read; neither text:write nor the older chat:write reads a thread back.

GET
/v1/chat/conversations/{id}/messages
GET
/v1/chat/conversations/{id}/messages
Read a thread back
What a thread of yours says, in order.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
limitinteger
Clamped to 200. Anything but a whole number of at least 1 is 400 invalid_limit. 1 to 200.
afterinteger
Cursor. Feed back the next_after from the previous page; the next page starts strictly after that seq. 0 to ….
include_reasoningstring
The model's reasoning beside each answer. It often runs several times the length of the answer. One of "true".
Read a thread back
curl --request GET \
  --url 'https://api.auray.ai/v1/chat/conversations/{id}/messages' \
  --header 'Authorization: Bearer <api-key>'
{
  "object": "<string>",
  "conversation_id": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "seq": 123,
      "role": "<string>",
      "status": "<string>",
      "content": "<string>",
      "reasoning": "<string>",
      "model": "<string>",
      "finish_reason": "<string>",
      "error_code": "<string>",
      "job_id": "<string>",
      "created_at": "<string>",
      "finished_at": "<string>"
    }
  ],
  "has_more": true,
  "next_after": 123
}
Read a thread back
curl https://api.auray.ai/v1/chat/conversations/0d6f1a52-3c1e-4b8a-9f3e-2a1b0c9d8e7f/messages \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "object": "<string>",
  "conversation_id": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "seq": 123,
      "role": "<string>",
      "status": "<string>",
      "content": "<string>",
      "reasoning": "<string>",
      "model": "<string>",
      "finish_reason": "<string>",
      "error_code": "<string>",
      "job_id": "<string>",
      "created_at": "<string>",
      "finished_at": "<string>"
    }
  ],
  "has_more": true,
  "next_after": 123
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — chat:read — not jobs:read, and not text:write or the older chat:write, which submit turns and start threads but do not read one back.

Path Parameters

idstringrequired

Query Parameters

limitinteger
Clamped to 200. Anything but a whole number of at least 1 is 400 invalid_limit. 1 to 200.
afterinteger
Cursor. Feed back the next_after from the previous page; the next page starts strictly after that seq. 0 to ….
include_reasoningstring
The model's reasoning beside each answer. It often runs several times the length of the answer. One of "true".

Response

application/json

OK

objectstring
One of "list".
conversation_idstring
dataobject[]
Show child attributes
idstring
objectstring
One of "chat.message".
seqinteger
The message's place in the thread; after pages by it.
rolestring
One of "user", "assistant".
statusstring
complete for a message the thread holds; pending or streaming while an answer is being written; stopped for an answer stopped before it finished, failed for one that broke or never began (error_code says why). A stopped or failed answer keeps what was delivered before it ended, and the next turn is sent it, marked as cut off, with its end kept so the model can continue it. It is charged as delivered — except on a chat model another company runs, where an answer you stopped once we had sent it to the model, or one of our time limits cut off, is charged in full, for its prompt and the longest answer it allowed, never more than its reserve (the chat settlement table, https://auray.ai/docs/jobs#chat-settlement). One of "pending", "streaming", "complete", "stopped", "failed".
contentstring
reasoningstring
Only with include_reasoning=true. May be null.
modelstring
The slot that wrote an answer; null on your own messages. May be null.
finish_reasonstring
May be null.
error_codestring
Why an answer failed, in the error catalogue's words. May be null.
job_idstring
The turn's job, which GET /jobs/{id} reads — what it cost from the ledger included. Null on your own messages. May be null.
created_atstring
finished_atstring
May be null.
has_moreboolean
next_afterinteger
Present exactly when there is another page: the seq of the last message on this one. May be null.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Read a thread back
curl https://api.auray.ai/v1/chat/conversations/0d6f1a52-3c1e-4b8a-9f3e-2a1b0c9d8e7f/messages \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "object": "<string>",
  "conversation_id": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "seq": 123,
      "role": "<string>",
      "status": "<string>",
      "content": "<string>",
      "reasoning": "<string>",
      "model": "<string>",
      "finish_reason": "<string>",
      "error_code": "<string>",
      "job_id": "<string>",
      "created_at": "<string>",
      "finished_at": "<string>"
    }
  ],
  "has_more": true,
  "next_after": 123
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.