v2
chat
chat

Get Session

Retrieve the details of a specific chat session.

Supports cursor-based pagination via limit and before_sequence. When no pagination params are provided, returns the most recent messages.

get/api/chat/sessions/{session_id}

Path parameters

session_idstring required

Query parameters

limitinteger
before_sequenceinteger nullable

Response

Successful Response

idstring required
created_atstring required
updated_atstring required
user_idstring nullable required
chat_statusstring
messagesobject[] required
has_more_messagesboolean
oldest_sequenceinteger nullable
total_prompt_tokensinteger
total_completion_tokensinteger
expert_idstring nullable

Changes

Changed in 7 of the 92 revisions of this API.415

    • added the optional property metadata/delegated_by_expert_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/delegated_by_session_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/handed_off_from_expert_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/origin to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/pending_question to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/llm_auth_provider to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/llm_credential_id to the response with the 200 status

      response-optional-property-added

    • the metadata response's property default value changed from {"dry_run":false,"kind":"normal"} to {"dry_run":false,"llm_auth_provider":"platform","kind":"normal"} for the status 200

      response-property-default-value-changed

    • added the optional property expert_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/dream_pass_id to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/kind to the response with the 200 status

      response-optional-property-added

    • the metadata response's property default value changed from {"dry_run":false} to {"dry_run":false,"kind":"normal"} for the status 200

      response-property-default-value-changed

    • added the optional property metadata/source_platform to the response with the 200 status

      response-optional-property-added

    • added the optional property chat_status to the response with the 200 status

      response-optional-property-added

  • 8c84efcb3afb41See the full diff
    • removed the optional property chat_status from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/dream_pass_id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/kind from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/source_platform from the response with the 200 status

      response-optional-property-removed

    • the metadata response's property default value changed from {"dry_run":false,"kind":"normal"} to {"dry_run":false} for the status 200

      response-property-default-value-changed

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