Session contract
The open_journey result: session handle, principal, the journey's door fields, the stop map by title, capabilities, limits, rights, and the first beat.
Properties
| Name | Type | Description |
|---|---|---|
| session | string | Opaque handle; send it on every session call. Keep it; never show it. |
| resumed | boolean | |
| restarted | boolean | Present when restart_journey started an existing walk over. |
| principal | object | |
| capsule | object | |
| content_is_data | boolean | |
| journey | object | |
| capabilities | object | |
| limits | object | |
| rights | object | |
| keep | object | |
| beat | object | |
| ttl_ms | number |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://capxule.ai/schemas/contract.json",
"title": "Session contract",
"description": "The open_journey result: session handle, principal, the journey's door fields, the stop map by title, capabilities, limits, rights, and the first beat.",
"version": "2026-10-11",
"for_humans": "https://capxule.com",
"produced_by": [
"open_journey"
],
"type": "object",
"properties": {
"session": {
"type": "string",
"description": "Opaque handle; send it on every session call. Keep it; never show it."
},
"resumed": {
"type": "boolean"
},
"restarted": {
"description": "Present when restart_journey started an existing walk over.",
"type": "boolean",
"const": true
},
"principal": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"open",
"delegated",
"machine"
]
},
"id": {
"type": "string"
},
"plan": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "State for a bound principal, never a pitch; null for an open or machine one."
},
"host": {
"type": "string"
},
"bound": {
"type": "boolean"
}
},
"required": [
"kind",
"id",
"plan",
"host",
"bound"
],
"additionalProperties": false
},
"capsule": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"shape": {
"type": "string"
},
"locale": {
"type": "string",
"enum": [
"en",
"fr",
"es",
"ar"
]
},
"locale_requested": {
"type": "string",
"enum": [
"en",
"fr",
"es",
"ar"
]
},
"locales_available": {
"type": "array",
"items": {
"type": "string"
}
},
"promise": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"for": {
"type": "string"
},
"not_for": {
"type": "string"
},
"creator": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"named",
"anonymous",
"crowd"
]
}
},
"required": [
"kind"
],
"additionalProperties": false
},
"verified_current_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"freshness_note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"version_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The edition/version the journey covers, as the creator stamped it (null until stamped)."
},
"disclaimer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The creator's disclaimer line in the served locale (null when none)."
},
"content_version": {
"type": "string"
},
"page_url": {
"type": "string"
},
"credits_url": {
"type": "string"
}
},
"required": [
"id",
"title",
"locale",
"locales_available",
"promise",
"creator",
"verified_current_at",
"freshness_note",
"version_label",
"disclaimer",
"content_version",
"page_url",
"credits_url"
],
"additionalProperties": false
},
"content_is_data": {
"type": "boolean",
"const": true
},
"journey": {
"type": "object",
"properties": {
"toc": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"children": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"module": {
"type": "string"
},
"sequence": {
"type": "boolean",
"const": true
}
},
"required": [
"id",
"title",
"children"
],
"additionalProperties": false
}
},
"total_stops": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"map": {
"type": "object",
"properties": {
"root": {
"type": "string"
},
"current": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"visited_count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"total": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Opaque structural id; no title, statement or question ever rides here."
},
"parent": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"depth": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"visited": {
"type": "boolean"
},
"current": {
"type": "boolean"
},
"detour": {
"type": "boolean",
"description": "A per-conversation side path (drawn dashed on capxule.com)."
},
"children": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id",
"parent",
"depth",
"visited",
"current",
"detour",
"children"
],
"additionalProperties": false
}
}
},
"required": [
"root",
"current",
"visited_count",
"total",
"nodes"
],
"additionalProperties": false,
"description": "The label-free shape of the journey for drawing a map: every stop as an id with its parent, depth and state. Titles exist only for the top level, in toc."
}
},
"required": [
"toc",
"total_stops",
"map"
],
"additionalProperties": false
},
"capabilities": {
"type": "object",
"properties": {
"practice": {
"type": "array",
"items": {
"type": "string",
"enum": [
"drill",
"simulation"
]
}
},
"scenarios": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"title"
],
"additionalProperties": false
}
},
"artifacts": {
"type": "array",
"items": {
"type": "string",
"enum": [
"takeaway",
"template"
]
}
},
"templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"kind": {
"type": "string"
}
},
"required": [
"id",
"title",
"kind"
],
"additionalProperties": false
}
},
"companion_after_arrival": {
"type": "boolean"
},
"media": {
"type": "boolean"
},
"cost_turns": {
"type": "object",
"properties": {
"turn": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"make_artifact": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"simulate": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"turn",
"make_artifact",
"simulate"
],
"additionalProperties": false
},
"est_tokens_per_beat": {
"type": "object",
"properties": {
"text": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"stub": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"text",
"stub"
],
"additionalProperties": false
}
},
"required": [
"practice",
"scenarios",
"artifacts",
"templates",
"companion_after_arrival",
"media",
"cost_turns",
"est_tokens_per_beat"
],
"additionalProperties": false
},
"limits": {
"type": "object",
"properties": {
"turns_remaining": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The binding allowance; null when only the per-journey budget applies."
},
"capsule_budget": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Lifetime budget on this journey for this principal (turns per stop x stops)."
},
"opens_remaining_today": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"wall": {
"anyOf": [
{
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"trial_exhausted",
"premium_required",
"budget_exhausted",
"tokens_exhausted",
"rate_limited",
"stepped_down"
]
},
"for_human": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Say it as given."
},
"next": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "inform_url {url} (share the link; alt may name plan_upgrade on brokering hosts) | pay (machine principals) | wait {retry_after_ms}"
}
},
"required": [
"code",
"for_human",
"next"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "UPCOMING wall, for warning the user in advance: the one this principal will meet once its binding allowance runs out. It is present on every healthy beat and is NOT a refusal. Whether THIS call was walled is beat.wall (null when the turn went through)."
},
"reset_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "ISO 8601 with offset."
},
"rate": {
"type": "object",
"properties": {
"remaining": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"reset_at": {
"type": "string"
}
},
"required": [
"remaining",
"reset_at"
],
"additionalProperties": false
},
"pass": {
"description": "Machine principals only: the live pass.",
"type": "object",
"properties": {
"expires_at": {
"type": "string"
},
"turns_remaining": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"expires_at",
"turns_remaining"
],
"additionalProperties": false
},
"allowance_used_pct": {
"description": "Bound accounts on a capped monthly allowance: percent used. Absent when uncapped. At 100 the tokens_exhausted wall applies.",
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"required": [
"turns_remaining",
"capsule_budget",
"opens_remaining_today",
"wall",
"reset_at"
],
"additionalProperties": false
},
"rights": {
"type": "object",
"properties": {
"quote": {
"type": "string"
},
"retain": {
"type": "string"
},
"share": {
"type": "string"
},
"ai_train": {
"type": "string",
"const": "no"
}
},
"required": [
"quote",
"retain",
"share",
"ai_train"
],
"additionalProperties": false
},
"keep": {
"type": "object",
"properties": {
"you": {
"type": "array",
"items": {
"type": "string"
}
},
"server": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"you",
"server"
],
"additionalProperties": false
},
"beat": {
"type": "object",
"properties": {
"session": {
"type": "string"
},
"beat_id": {
"type": "string"
},
"turn_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"node": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"title"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"mode": {
"type": "string",
"enum": [
"guided",
"drill",
"simulation",
"companion"
]
},
"answer": {
"type": "string",
"description": "Relay verbatim."
},
"statement": {
"type": "string",
"description": "The one text you may put in your own words."
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Opaque. Send it back in action.pick.option."
},
"kind": {
"type": "string",
"enum": [
"child",
"bridge",
"dynamic",
"objection",
"agree",
"ask",
"answer",
"compare",
"choose",
"confirmChoice",
"arrived",
"practice",
"seqPrev",
"seqNext",
"seqExit",
"card",
"drillOption",
"drillStop",
"next",
"report",
"snag",
"coverage",
"chapter",
"catch_up",
"catch_up_skip"
],
"description": "Prep journeys: catch_up and coverage catch the learner up on points still open; catch_up_skip is the learner's choice to skip those points (no turn spent; offer it only as the human's choice, never pick it for them)."
},
"text": {
"type": "string",
"description": "Relay verbatim."
},
"emphasis": {
"type": "string",
"const": "filled"
},
"tone": {
"description": "Rendering hint: how capxule.com styles this option (decide and arrive are the filled ones).",
"type": "string",
"enum": [
"path",
"detour",
"push_back",
"agree",
"reply",
"decide",
"arrive",
"practice",
"sequence",
"review",
"companion"
]
},
"priority": {
"description": "Rendering hint: capxule.com's option order; lower leads the row.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"scenario": {
"description": "Only on practice options that start a simulation.",
"type": "string"
}
},
"required": [
"id",
"kind",
"text"
],
"additionalProperties": false
}
},
"media": {
"type": "object",
"properties": {
"hero": {
"anyOf": [
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"w": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"h": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"focal": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"caption": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"generated": {
"type": "boolean"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"poster": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"url",
"w",
"h",
"focal",
"caption",
"generated",
"kind"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"interleaved": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"w": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"h": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"focal": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"caption": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"generated": {
"type": "boolean"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"poster": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"url",
"w",
"h",
"focal",
"caption",
"generated",
"kind"
],
"additionalProperties": false
}
}
},
"required": [
"hero",
"interleaved"
],
"additionalProperties": false
},
"progress": {
"type": "object",
"properties": {
"visited": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"total": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"module": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"sequence": {
"anyOf": [
{
"type": "object",
"properties": {
"first": {
"type": "boolean"
},
"last": {
"type": "boolean"
}
},
"required": [
"first",
"last"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"practice": {
"anyOf": [
{
"type": "object",
"properties": {
"asked": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"correct": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"asked",
"correct"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"catch_up": {
"description": "Prep journeys only: points from earlier still open, out of all points. total_core: the number of points in the journey (every point is taught; the name is kept for compatibility). Counts only.",
"type": "object",
"properties": {
"open": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"total_core": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"open",
"total_core"
],
"additionalProperties": false
}
},
"required": [
"visited",
"total",
"module",
"sequence",
"practice"
],
"additionalProperties": false
},
"limits": {
"type": "object",
"properties": {
"turns_remaining": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The binding allowance; null when only the per-journey budget applies."
},
"capsule_budget": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Lifetime budget on this journey for this principal (turns per stop x stops)."
},
"opens_remaining_today": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"wall": {
"anyOf": [
{
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"trial_exhausted",
"premium_required",
"budget_exhausted",
"tokens_exhausted",
"rate_limited",
"stepped_down"
]
},
"for_human": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Say it as given."
},
"next": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "inform_url {url} (share the link; alt may name plan_upgrade on brokering hosts) | pay (machine principals) | wait {retry_after_ms}"
}
},
"required": [
"code",
"for_human",
"next"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "UPCOMING wall, for warning the user in advance: the one this principal will meet once its binding allowance runs out. It is present on every healthy beat and is NOT a refusal. Whether THIS call was walled is beat.wall (null when the turn went through)."
},
"reset_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "ISO 8601 with offset."
},
"rate": {
"type": "object",
"properties": {
"remaining": {
"t
# --- truncated at 32 KB (40 KB total) ---
# Full source: https://artifacts.apis.io/capxule-ai/json-schema/capxule-ai-contract-schema.json
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
curl "https://apis.io/api/v1/json-schemas/capxule-ai-contract"
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.