sessions

List sessions for a project

get/v1/projects/{project_identifier}/sessions

Path parameters

project_identifierstring required

The project identifier: either project ID or project name.

The project identifier: either project ID or project name.

Query parameters

cursorstring nullable

Cursor for pagination (session ID)

Cursor for pagination (session ID)

limitinteger

The max number of sessions to return at a time.

The max number of sessions to return at a time.

order'asc' | 'desc'

Sort order by ID: 'asc' (ascending) or 'desc' (descending).

Sort order by ID: 'asc' (ascending) or 'desc' (descending).

Response

Successful Response

next_cursorstring nullable required

Changes

Changed in 2 of the 70 revisions of this API.33

    • added the optional property data/items/token_count_completion to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/token_count_prompt to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/token_count_total to the response with the 200 status

      response-optional-property-added

    • removed the optional property data/items/token_count_completion from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/token_count_prompt from the response with the 200 status

      response-optional-property-removed

    • removed the optional property data/items/token_count_total from the response with the 200 status

      response-optional-property-removed

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