Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mirobody.ai/llms.txt

Use this file to discover all available pages before exploring further.

/api/chat will auto-create a session when no session_id is supplied. If you’d rather mint the session id up front (e.g. for displaying a draft conversation card before sending), use this endpoint.

Endpoint

POST /api/session
Authorization: Bearer <access_token>
Content-Type: application/json
{ "session_id": "<optional client-defined id>", "query_user_id": "<optional>" }

Response

{
  "code": 0, "msg": "ok",
  "data": {
    "session_id":  "91695b3e-6249-...",
    "created_at": "2026-05-22T06:23:00"
  }
}

Naming conventions

  • Plain chat: client-generated UUID, or pull from the id event of the first /api/chat response.
  • Journal: server auto-generates today_<uid>_<yyyy>_<mm>_<dd>_<ts>.
  • Multi-panel compare: cdm_p<pane>_<uid>_<agent>_<random>.
session_id is fully client-controlled; no global namespace is enforced.