Get an assistant conversation
const url = 'http://localhost:8080/api/v1/projects/example/assistant/conversations/example';const options = {method: 'GET', headers: {cookie: 'cetra_session=<cetra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/projects/example/assistant/conversations/example \ --cookie cetra_session=<cetra_session>Project members and above, with a session; only the conversation’s author (D-AS-4, D-AS-10). The conversation with its messages, oldest first. Any other id is 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project UUID, URL-encoded org-slug/project-slug, or current.
Conversation id.
Responses
Section titled “Responses”The conversation with its messages.
A conversation with its messages, oldest first.
object
Creation time, nanoseconds since the Unix epoch. JSON is RFC 3339.
Conversation id.
Last message, nanoseconds since the Unix epoch. JSON is RFC 3339. A rename does not change it.
Messages stored in the conversation.
The messages, oldest first.
One message of a conversation.
object
The page context sent with a user message (D-AS-14).
object
Creation time, nanoseconds since the Unix epoch. JSON is RFC 3339.
The user’s rating, when given.
The message’s parts, in order.
One part of a message (spec 04 § Assistant).
Plain text.
object
The text.
A tool the assistant called.
object
The arguments the assistant passed.
object
The call’s id, unique within the message.
The tool’s name.
The answer of a tool call.
object
The id of the call this answers.
The tool’s name.
Whether the tool succeeded.
The tool’s answer; omitted once stubbed (D-AS-12).
object
Rows in the answer, when it has rows.
Size of the answer in bytes.
Whether the answer was replaced by a stub (D-AS-12).
A draft the assistant proposes, for the user to apply.
object
The draft’s content.
object
The draft’s id, unique within the message.
What the draft is.
Who wrote it.
Position in the conversation, from 1.
How the message ended.
The turn’s trace, 32 lowercase hex characters.
Empty until the first message or a rename; the UI shows “New chat”.
Example
{ "messages": [ { "feedback": "up", "parts": [ { "type": "text" } ], "role": "user", "status": "complete" } ]}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}