router

*[OpenAI Only]* Get the array of messages for a saved Chat Completion. Only Chat Completions that have been stored with the `store` parameter set to true will be returned.

get/v1/chat/completions/{completion_id}/messages

Request

  • Base URL
    https://docs.sudoapp.dev (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

completion_idstring required

ID of the chat completion

Query parameters

afterstring

Identifier for the last message from the previous pagination request.

limitinteger

Number of messages to retrieve.

orderstring

Sort order for messages by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.

Response

Chat completion messages gotten successfully

first_idstring required
has_moreboolean required
last_idstring required
objectstring required

Changes

No recorded changes to this operation across all 1 revision of this API.