robosystems-ai · Schema

OperationEnvelope

Uniform response shape for every operation endpoint. Every dispatch carries an `op_` operation_id, which is the bridge to the monitoring surface: pass it to `GET /v1/operations/{operation_id}/stream` (see `routers/operations.py`) to subscribe to SSE progress events. Sync commands complete in the envelope itself (`status: "completed"`, HTTP 200); async commands (`status: "pending"`, HTTP 202) hand off to a background worker and stream their tail through that SSE endpoint. Failed dispatches still mint an `operation_id` so the audit log and any partial SSE events stay correlatable. `TResult` parameterizes `result` so per-op response shapes surface in OpenAPI. Operations that pin `OperationSpec.result_type` get `OperationEnvelope[YourEnvelope]` as their response model; the rest keep the default `Any` shape (`result: any | null` on the wire).

FinanceArtificial IntelligenceKnowledge GraphOpen Source

Properties

Name Type Description
operation string Kebab-case operation name
operationId string op_-prefixed ULID for audit and SSE correlation
status string Operation lifecycle state
result object Command-specific result payload
at string ISO-8601 UTC timestamp
createdBy object User ID that initiated the operation
idempotentReplay boolean True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
View JSON Schema on GitHub

JSON Schema

robosystems-ai-operation-envelope-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-operation-envelope-schema.json",
  "title": "OperationEnvelope",
  "description": "Uniform response shape for every operation endpoint.\n\nEvery dispatch carries an `op_<ULID>` operation_id, which is the bridge\nto the monitoring surface: pass it to\n`GET /v1/operations/{operation_id}/stream` (see `routers/operations.py`)\nto subscribe to SSE progress events. Sync commands complete in the envelope\nitself (`status: \"completed\"`, HTTP 200); async commands\n(`status: \"pending\"`, HTTP 202) hand off to a background worker and stream\ntheir tail through that SSE endpoint. Failed dispatches still mint an\n`operation_id` so the audit log and any partial SSE events stay\ncorrelatable.\n\n`TResult` parameterizes `result` so per-op response shapes surface in\nOpenAPI. Operations that pin `OperationSpec.result_type` get\n`OperationEnvelope[YourEnvelope]` as their response model; the rest keep\nthe default `Any` shape (`result: any | null` on the wire).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-connections-api-openapi.yml#/components/schemas/OperationEnvelope",
  "properties": {
    "operation": {
      "type": "string",
      "title": "Operation",
      "description": "Kebab-case operation name"
    },
    "operationId": {
      "type": "string",
      "title": "Operationid",
      "description": "op_-prefixed ULID for audit and SSE correlation"
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "pending",
        "failed"
      ],
      "title": "Status",
      "description": "Operation lifecycle state"
    },
    "result": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Result",
      "description": "Command-specific result payload"
    },
    "at": {
      "type": "string",
      "title": "At",
      "description": "ISO-8601 UTC timestamp"
    },
    "createdBy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Createdby",
      "description": "User ID that initiated the operation"
    },
    "idempotentReplay": {
      "type": "boolean",
      "title": "Idempotentreplay",
      "description": "True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "operation",
    "operationId",
    "status",
    "at"
  ]
}

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/robosystems-ai-operation-envelope"
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.