Skip to main content
GET
List Sessions

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Query Parameters

order
enum<string>

Listing order. Defaults to updated_at_desc. Order used when listing Sessions: updated_at_desc (default), updated_at, created_at_desc, or created_at.

Available options:
created_at,
created_at_desc,
updated_at,
updated_at_desc
agent_id
string

Restrict the listing to Sessions running this Agent.

agent_version
string

Restrict the listing to Sessions pinned to this Agent version (per-resource numeric string, such as "2"). Typically combined with agent_id.

statuses
enum<string>[]

Restrict the listing to these lifecycle statuses. Omitted means every status.

Current lifecycle state of a Session or Thread.

  • idle: not executing. Accepts new input.
  • running: executing a turn.
  • terminated: final state after archiving.
Available options:
idle,
running,
stopping,
terminated
include_archived
boolean

Include archived Sessions. Omitted means they are excluded.

created_at_gt
string<date-time>

Return Sessions created after this timestamp (exclusive).

created_at_gte
string<date-time>

Return Sessions created at or after this timestamp (inclusive).

created_at_lt
string<date-time>

Return Sessions created before this timestamp (exclusive).

created_at_lte
string<date-time>

Return Sessions created at or before this timestamp (inclusive).

updated_at_gt
string<date-time>

Return Sessions last updated after this timestamp (exclusive).

updated_at_gte
string<date-time>

Return Sessions last updated at or after this timestamp (inclusive).

updated_at_lt
string<date-time>

Return Sessions last updated before this timestamp (exclusive).

updated_at_lte
string<date-time>

Return Sessions last updated at or before this timestamp (inclusive).

page_size
integer<int32>
default:50

How many items to return (1–1000; default 50).

Required range: 1 <= x <= 1000
page_token
string

Pass the next_page_token from a previous response to fetch the next page.

Response

Sessions are returned in the requested order. Each item omits resources.

One page of Sessions. Items omit the resources bindings.

items
object[]
required

Sessions in the current page.

Example:
next_page_token
string

Pagination token for the next page. Absent when the listing is exhausted.

Example:

"next-page-token"