codai · Schema

Host presence

A device currently connected to `GET /v1/hosts/stream`.

CompanyArtificial IntelligenceCode GenerationDeveloper ToolsLLM GatewayOpenAI-CompatibleModel RoutingRomania

Properties

Name Type Description
device_id string
name stringnull Device display name.
platform stringnull Device platform (see `DevicePlatform`).
os stringnull From the `os` query param of the stream, if given.
hostname stringnull
roots array Filesystem roots the host announced.
caps array Capabilities the host announced with `caps=` (`iphone`, `video`, `pty`, …); empty when none.
environment_id stringnull Environment that serves `video` / `pty` streams for this host over codai-relay (`env=` of the stream), or null.
since integer Epoch ms when the current stream was opened.
last_seen integer Epoch ms of the last heartbeat.
View JSON Schema on GitHub

JSON Schema

codai-ro-host-presence-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-host-presence-schema.json",
  "title": "Host presence",
  "description": "A device currently connected to `GET /v1/hosts/stream`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-hosts-api-openapi.yml#/components/schemas/HostPresence",
  "type": "object",
  "required": [
    "device_id",
    "name",
    "platform",
    "os",
    "hostname",
    "roots",
    "caps",
    "environment_id",
    "since",
    "last_seen"
  ],
  "properties": {
    "device_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Device display name."
    },
    "platform": {
      "type": [
        "string",
        "null"
      ],
      "description": "Device platform (see `DevicePlatform`)."
    },
    "os": {
      "type": [
        "string",
        "null"
      ],
      "description": "From the `os` query param of the stream, if given."
    },
    "hostname": {
      "type": [
        "string",
        "null"
      ]
    },
    "roots": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Filesystem roots the host announced."
    },
    "caps": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Capabilities the host announced with `caps=` (`iphone`, `video`, `pty`, …); empty when none."
    },
    "environment_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Environment that serves `video` / `pty` streams for this host over codai-relay (`env=` of the stream), or null."
    },
    "since": {
      "type": "integer",
      "description": "Epoch ms when the current stream was opened."
    },
    "last_seen": {
      "type": "integer",
      "description": "Epoch ms of the last heartbeat."
    }
  }
}

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-host-presence"
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.