Skip to main content

Parameters

string
required
The assistant’s ID.
Record<string, string | number>
required
The customer’s partition, as sent to sessions.create. Keys and values must not contain , or =.

Returns a Thread

A customer with no conversation returns an empty thread, not an error.
Record<string, string>
The partition you asked for.
string | null
ISO 8601 timestamp of the conversation’s start. null when there is none.
"bubble" | "bar" | null
The launcher set on the assistant in the dashboard.
number
Number of questions asked.
number
Total cost, in hundredths of a credit. 100 is one credit.
ThreadMessage[]
Questions and answers, oldest first. Each question is followed by its answer.
Example

Errors

401 invalid_api_key, 404 for an unknown assistant, 422 bad_partition for an unreadable partition. See Errors.