Get session messages

Retrieve all messages in a session, including user prompts and AI responses.

get/session/{sessionID}/message

Path parameters

sessionIDstring required

Session ID

Query parameters

directorystring
limitnumber

Response

List of messages

Changes

Changed in 13 of the 102 revisions of this API.1015

    • added the optional property items/info/anyOf[AssistantMessage]/stuckAborted to the response with the 200 status

      response-optional-property-added

    • added the optional property items/info/anyOf[AssistantMessage]/stuckNudged to the response with the 200 status

      response-optional-property-added

    • added the optional property items/info/anyOf[AssistantMessage]/stepCapped to the response with the 200 status

      response-optional-property-added

    • added the optional property items/info/anyOf[UserMessage]/excludeHistory to the response with the 200 status

      response-optional-property-added

    • removed the optional property items/info/anyOf[UserMessage]/excludeHistory from the response with the 200 status

      response-optional-property-removed

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property items/info/anyOf[UserMessage]/excludeHistory to the response with the 200 status

      response-optional-property-added

    • removed the optional property items/info/anyOf[UserMessage]/excludeHistory from the response with the 200 status

      response-optional-property-removed

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property items/info/anyOf[UserMessage]/excludeHistory to the response with the 200 status

      response-optional-property-added

    • added the optional property items/info/anyOf[AssistantMessage]/structured to the response with the 200 status

      response-optional-property-added

    • added the optional property items/info/anyOf[UserMessage]/format to the response with the 200 status

      response-optional-property-added

    • added StructuredOutputError to the items/info/anyOf[AssistantMessage]/error response property anyOf list for the response status 200

      response-property-any-of-added

    • added the optional property items/info/anyOf[AssistantMessage]/tokens/total to the response with the 200 status

      response-optional-property-added

    • added the optional property items/parts/items/anyOf[StepFinishPart]/tokens/total to the response with the 200 status

      response-optional-property-added

    • added ContextOverflowError to the items/info/anyOf[AssistantMessage]/error response property anyOf list for the response status 200

      response-property-any-of-added