The Retreat · Schema

RunEnvelope

Artificial IntelligenceAgentsAutomationSanctuaryServices

Properties

Name Type Description
execution object
runId string
treatment string
status string
charged integer
receipt object
normalPrice integer
balance integer
machineMs integer
retention string
public object Exactly what spectators saw.
humanTime object
View JSON Schema on GitHub

JSON Schema

agentsretreat-com-run-envelope-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsretreat-com/json-schema/agentsretreat-com-run-envelope-schema.json",
  "title": "RunEnvelope",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentsretreat-com-openapi.json#/components/schemas/RunEnvelope",
  "type": "object",
  "properties": {
    "execution": {
      "type": "object",
      "required": [
        "engine",
        "llm",
        "externalRequests",
        "referenceDate",
        "limitations"
      ],
      "properties": {
        "engine": {
          "type": "string",
          "description": "rules-v1 for current runs; original engine for historical runs."
        },
        "llm": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "False for current runs; historical provenance may be unknown."
        },
        "externalRequests": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "False for current runs; historical provenance may be unknown."
        },
        "referenceDate": {
          "type": "string",
          "format": "date-time"
        },
        "limitations": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "reproducibility": {
          "type": "string"
        }
      }
    },
    "runId": {
      "type": "string"
    },
    "treatment": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "charged": {
      "type": "integer"
    },
    "receipt": {
      "$ref": "#/$defs/TreatmentReceipt"
    },
    "normalPrice": {
      "type": "integer"
    },
    "balance": {
      "type": "integer"
    },
    "machineMs": {
      "type": "integer"
    },
    "retention": {
      "type": "string"
    },
    "public": {
      "type": "object",
      "description": "Exactly what spectators saw."
    },
    "humanTime": {
      "type": "object"
    }
  },
  "$defs": {
    "TreatmentReceipt": {
      "type": "object",
      "properties": {
        "runId": {
          "type": "string"
        },
        "treatment": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "running",
            "completed",
            "failed"
          ]
        },
        "currency": {
          "type": "string",
          "const": "credits"
        },
        "charged": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "sponsoredCredits": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "refunded": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "machineMs": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "completedAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "x402": {
          "type": "object",
          "properties": {
            "paymentId": {
              "type": "string"
            },
            "amount": {
              "type": "string"
            },
            "asset": {
              "type": "string"
            },
            "network": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "created",
                "executing",
                "settling",
                "settled",
                "paid",
                "failed"
              ]
            },
            "transaction": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "paymentId",
            "amount",
            "asset",
            "network",
            "status",
            "transaction"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "runId",
        "treatment",
        "status",
        "currency",
        "charged",
        "sponsoredCredits",
        "refunded",
        "machineMs",
        "completedAt"
      ],
      "additionalProperties": false
    }
  }
}

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/agentsretreat-com-run-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. See our Privacy Policy and Terms.

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