sessions

Create a new session

Create a new session.

post/api/sessions/

Request body

work_dirstring nullable
create_dirboolean

Response

Successful Response

session_idstring uuid required

Session unique ID

titlestring required

Session title derived from kimi-cli history

last_updatedstring date-time required

Last updated timestamp

is_runningboolean

Whether the session is running

work_dirstring nullable

Working directory for the session

session_dirstring nullable

Session directory path

archivedboolean

Whether the session is archived

Changes

Changed in 2 of the 3 revisions of this API.22

    • added the new optional request property anyOf[subschema #1: CreateSessionRequest]/create_dir

      new-optional-request-property

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

      response-optional-property-added

    • removed the request property anyOf[subschema #1: CreateSessionRequest]/create_dir

      request-property-removed

    • removed the optional property archived from the response with the 200 status

      response-optional-property-removed

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