codai · Schema

Session

A shared session as returned by create/patch and embedded in list/detail.

CompanyArtificial IntelligenceCode GenerationDeveloper ToolsLLM GatewayOpenAI-CompatibleModel RoutingRomania

Properties

Name Type Description
id string Server-assigned id.
session_key string Client-chosen stable key, unique per owner.
owner_user_id string
title stringnull
created_at string
last_event_at string Bumped on every stored event.
last_seq integer Highest event `seq`; 0 for an empty session.
executor_device_id stringnull Mirror of the lease holder; may be stale until the next lease write.
lease_expires_at stringnull
e2e boolean Payloads are end-to-end encrypted client-side.
archived boolean
stub boolean Title-only mirror without events yet; cleared by the first appended event batch.
View JSON Schema on GitHub

JSON Schema

codai-ro-session-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-session-schema.json",
  "title": "Session",
  "description": "A shared session as returned by create/patch and embedded in list/detail.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-sessions-api-openapi.yml#/components/schemas/Session",
  "type": "object",
  "required": [
    "id",
    "session_key",
    "owner_user_id",
    "title",
    "created_at",
    "last_event_at",
    "last_seq",
    "executor_device_id",
    "lease_expires_at",
    "e2e",
    "archived",
    "stub"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Server-assigned id."
    },
    "session_key": {
      "type": "string",
      "description": "Client-chosen stable key, unique per owner."
    },
    "owner_user_id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_event_at": {
      "type": "string",
      "format": "date-time",
      "description": "Bumped on every stored event."
    },
    "last_seq": {
      "type": "integer",
      "minimum": 0,
      "description": "Highest event `seq`; 0 for an empty session."
    },
    "executor_device_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Mirror of the lease holder; may be stale until the next lease write."
    },
    "lease_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "e2e": {
      "type": "boolean",
      "description": "Payloads are end-to-end encrypted client-side."
    },
    "archived": {
      "type": "boolean"
    },
    "stub": {
      "type": "boolean",
      "description": "Title-only mirror without events yet; cleared by the first appended event batch."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/codai-ro-session"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.