Get Chat
BetaPath parameters
id
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Response
id
This is the unique identifier for the chat.
orgId
This is the unique identifier for the org that this chat belongs to.
createdAt
This is the ISO 8601 date-time string of when the chat was created.
updatedAt
This is the ISO 8601 date-time string of when the chat was last updated.
assistantId
This is the assistant that will be used for the chat. To use an existing assistant, use assistantId
instead.
assistant
This is the assistant that will be used for the chat. To use an existing assistant, use assistantId
instead.
name
This is the name of the chat. This is just for your own reference.
sessionId
This is the ID of the session that will be used for the chat.
Mutually exclusive with previousChatId.
input
This is the input text for the chat.
Can be a string or an array of chat messages.
stream
This is a flag that determines whether the response should be streamed.
When true, the response will be sent as chunks of text.
previousChatId
This is the ID of the chat that will be used as context for the new chat.
The messages from the previous chat will be used as context.
Mutually exclusive with sessionId.
messages
This is an array of messages used as context for the chat. Used to provide message history for multi-turn conversations.
output
This is the output messages generated by the system in response to the input.
costs
These are the costs of individual components of the chat in USD.
cost
This is the cost of the chat in USD.