Properties
| Name | Type | Description |
|---|---|---|
| id | string | Session ID (`ses_` prefix). |
| object | string | |
| agent | object | OpenAI-shaped snapshot of the effective Agent configuration (id, name, model, instructions, multi_agent, reasoning, service_tier, text, tools). |
| agent_id | string | |
| agent_version | integer | |
| title | string | |
| model | string | |
| environment | object | Echo of the hosted execution context, kept for OpenAI SDK compatibility. It is not a Sandbox instance and needs no action from clients. |
| metadata | object | |
| status | string | Execution status. requires_action is not supported yet and surfaces as a 502 executor_contract_error. |
| lifecycle_status | string | |
| sync_status | string | |
| execution_status | string | |
| failure | object | |
| row_version | integer | |
| required_actions | array | |
| vault_ids | array | |
| usage | objectnull | Token usage; null until a turn reports usage. |
| created_at | integer | |
| last_active_at | integer | |
| updated_at | integer | |
| archived_at | integernull | |
| source | stringnull | direct for Sessions created with POST /v1/agents/sessions; null when the origin is unavailable (see source_failure_code). |
| source_id | stringnull | Null for Sessions created directly with POST /v1/agents/sessions. |
| source_failure_code | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/sandbase-ai/json-schema/sandbase-ai-session-schema.json",
"title": "Session",
"x-generated": "2026-11-23",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/sandbase-ai-openapi.json#/components/schemas/Session",
"type": "object",
"required": [
"id",
"object",
"agent",
"agent_id",
"agent_version",
"title",
"model",
"environment",
"metadata",
"status",
"lifecycle_status",
"sync_status",
"execution_status",
"failure",
"row_version",
"required_actions",
"vault_ids",
"created_at",
"last_active_at",
"updated_at",
"archived_at"
],
"properties": {
"id": {
"type": "string",
"description": "Session ID (`ses_` prefix)."
},
"object": {
"type": "string",
"const": "agent.session"
},
"agent": {
"type": "object",
"description": "OpenAI-shaped snapshot of the effective Agent configuration (id, name, model, instructions, multi_agent, reasoning, service_tier, text, tools)."
},
"agent_id": {
"type": "string"
},
"agent_version": {
"type": "integer"
},
"title": {
"type": "string"
},
"model": {
"type": "string"
},
"environment": {
"type": "object",
"description": "Echo of the hosted execution context, kept for OpenAI SDK compatibility. It is not a Sandbox instance and needs no action from clients.",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"const": "openai_hosted"
},
"skills": {
"type": "array",
"items": {
"type": "object"
}
}
}
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"status": {
"type": "string",
"enum": [
"idle",
"in_progress",
"requires_action",
"failed"
],
"description": "Execution status. requires_action is not supported yet and surfaces as a 502 executor_contract_error."
},
"lifecycle_status": {
"type": "string",
"enum": [
"active",
"archived"
]
},
"sync_status": {
"type": "string"
},
"execution_status": {
"type": "string"
},
"failure": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/SessionFailure"
}
]
},
"row_version": {
"type": "integer"
},
"required_actions": {
"type": "array",
"items": {}
},
"vault_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"usage": {
"type": [
"object",
"null"
],
"description": "Token usage; null until a turn reports usage."
},
"created_at": {
"type": "integer"
},
"last_active_at": {
"type": "integer"
},
"updated_at": {
"type": "integer"
},
"archived_at": {
"type": [
"integer",
"null"
]
},
"source": {
"type": [
"string",
"null"
],
"enum": [
"direct",
null
],
"description": "direct for Sessions created with POST /v1/agents/sessions; null when the origin is unavailable (see source_failure_code)."
},
"source_id": {
"type": [
"string",
"null"
],
"description": "Null for Sessions created directly with POST /v1/agents/sessions."
},
"source_failure_code": {
"type": "string"
}
},
"$defs": {
"SessionFailure": {
"type": "object",
"required": [
"code",
"message",
"action"
],
"properties": {
"code": {
"type": "string",
"enum": [
"session_creation_rejected",
"execution_failed",
"model_authentication_failed",
"model_rate_limited",
"model_quota_exceeded",
"context_limit_exceeded",
"environment_connection_timeout",
"runtime_unavailable",
"model_request_failed",
"model_configuration_rejected",
"session_not_ready",
"session_execution_unavailable",
"session_configuration_unavailable",
"session_snapshot_unavailable"
]
},
"message": {
"type": "string"
},
"action": {
"type": "string",
"description": "Suggested next step, such as retry_later, inspect_history, create_new_session, check_model_account, or create_session_with_updated_model_provider."
},
"retryable": {
"type": "boolean"
}
}
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sandbase-ai-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.