Skip to main content
GET
List WorkItems

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

Path Parameters

environment_id
string
required

Environment whose work is listed.

Query Parameters

status
enum<string>

Filter by lifecycle status. Omitted lists every status. Lifecycle state of a WorkItem: queued covers both undelivered and delivered-unacked items (a delivery awaiting its ack is still queue business); ack moves it to starting; the first heartbeat activates it (active); a stop request enters stopping until the worker confirms completion (completed). An idle worker may complete directly. Historical failed and cancelled rows remain readable.

Available options:
queued,
starting,
active,
stopping,
completed,
failed,
cancelled
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

WorkItems are returned newest first.

One page of WorkItems, newest first.

items
object[]
required

WorkItems in this page.

Example:
next_page_token
string

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

Example:

"next-page-token"