API reference

API reference · Playground

Read a conversation and its messages

GET/api/conversations/{id}Signed in sessionNo key

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredintegerThe conversation id.

Answer 200

The thread.

Fields of the 200 answer
FieldTypeWhat it is
conversationConversation
conversation.idinteger
conversation.titlestring
conversation.modelstring
conversation.createdAtinteger
conversation.updatedAtinteger
messagesarray of ChatMessageRow
messages[].idinteger
messages[].conversationIdinteger
messages[].rolestringOne of "user", "assistant".
messages[].contentstring
messages[].modelstring or null
messages[].createdAtinteger

Errors

  • 404OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter