codai · Schema

Shared session

A session object (same wire shape as `GET /v1/sessions/{id}`) plus your effective role and the share that grants it.

CompanyArtificial IntelligenceCode GenerationDeveloper ToolsLLM GatewayOpenAI-CompatibleModel RoutingRomania

Properties

Name Type Description
id string
session_key string The owner's `x-codai-session-id` value.
owner_user_id string
title stringnull
created_at string
last_event_at string
last_seq integer Sequence number of the latest event.
executor_device_id stringnull
lease_expires_at stringnull
e2e boolean
archived boolean
role object
share_id string The share granting the highest role.
View JSON Schema on GitHub

JSON Schema

codai-ro-org-shared-session-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-org-shared-session-schema.json",
  "title": "Shared session",
  "description": "A session object (same wire shape as `GET /v1/sessions/{id}`) plus your effective role and the share that grants it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-orgs-sharing-api-openapi.yml#/components/schemas/OrgSharedSession",
  "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",
    "role",
    "share_id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "session_key": {
      "type": "string",
      "description": "The owner's `x-codai-session-id` value."
    },
    "owner_user_id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_event_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_seq": {
      "type": "integer",
      "description": "Sequence number of the latest event."
    },
    "executor_device_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "lease_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "e2e": {
      "type": "boolean"
    },
    "archived": {
      "type": "boolean"
    },
    "role": {
      "$ref": "#/$defs/OrgSessionRole"
    },
    "share_id": {
      "type": "string",
      "format": "uuid",
      "description": "The share granting the highest role."
    }
  },
  "$defs": {
    "OrgSessionRole": {
      "type": "string",
      "description": "Role granted on a session.",
      "enum": [
        "viewer",
        "editor",
        "owner"
      ]
    }
  }
}

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-org-shared-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.