Skip to main content
POST
Run a Trigger

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
Idempotency-Key
string

Optional idempotency key. Reusing the same key with the same request target, API version, and body replays the first response for 24 hours. Reusing it with a different target, API version, or body, or while the first request is still being processed, returns 409.

Path Parameters

id
string
required

Trigger ID.

Body

application/json

Optional user message to send to the manually started run.

Request body for manually firing a Trigger.

payload
string

Optional free-form payload delivered to the run's Session as a user message.

Maximum string length: 4096
Example:

"Run the daily summary."

Response

The terminal TriggerRun record (completed, failed, or skipped).

Record of one Trigger run: its target Session, terminal status, and failure details when it failed.

id
string
required

TriggerRun ID.

Example:

"trun_01h455vb4pex5vsknk084sn02q"

trigger_id
string
required

Trigger that produced this run.

Example:

"trig_01h455vb4pex5vsknk084sn02q"

status
enum<string>
required

Current run status.

Available options:
pending,
running,
completed,
failed,
skipped
Example:

"completed"

created_at
string<date-time>
required

Creation timestamp.

Example:

"2026-08-01T09:00:00Z"

context
Scheduled · object

Context of a scheduled (cron) TriggerRun.

Example:
session_id
string

Session created by this run. Absent until one is assigned.

Example:

"sesn_01h455vb4pex5vsknk084sn02q"

agent_version
string

Agent version of session_id, recorded when the run delivered to it. It does not change when the Trigger is updated later. Absent when the run recorded no Session, and on runs recorded before 2026-10-14.

Example:

"1"

error
object

Structured failure or skip reason of this run. Present on failed runs and on runs skipped on overlap, a Session execution error, or a full queue.

Example:
finished_at
string<date-time>

Time when the run reached a terminal state. Absent while it is in progress.

Example:

"2026-08-01T09:01:00Z"