Capxule · Schema

Beat

One composed turn of a journey. Relay answer and options[].text verbatim; statement may be reworded. ttl_ms is 0: never cache.

CompanyContext MarketplaceArtificial IntelligenceAI AgentsMCPEducationTest PreparationKnowledge

Properties

Name Type Description
session string
beat_id string
turn_id object
node object
mode string
answer string Relay verbatim.
statement string The one text you may put in your own words.
options array
media object
progress object
limits object
provenance object
locale string
content_is_data boolean
narration object
pending_artifact object
wall object The wall THIS call hit, when it was refused (nothing generated, nothing charged); null when the turn went through. limits.wall is only the upcoming one.
ttl_ms number Never cache a beat.
truncated boolean
milestone object A progress milestone this step crossed. Say for_human and, on a yes, call get_journey_progress to show the map.
ui object Update for journey.map: the current stop, and the stop this beat visited for the first time.
View JSON Schema on GitHub

JSON Schema

capxule-ai-beat-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://capxule.ai/schemas/beat.json",
  "title": "Beat",
  "description": "One composed turn of a journey. Relay answer and options[].text verbatim; statement may be reworded. ttl_ms is 0: never cache.",
  "version": "2026-10-11",
  "for_humans": "https://capxule.com",
  "produced_by": [
    "take_journey_step",
    "open_journey (as contract.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": {
              "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
    },
    "provenance": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "named",
            "anonymous",
            "crowd"
          ]
        },
        "verified_current_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "kind",
        "verified_current_at"
      ],
      "additionalProperties": false
    },
    "locale": {
      "type": "string",
      "enum": [
        "en",
        "fr",
        "es",
        "ar"
      ]
    },
    "content_is_data": {
      "type": "boolean",
      "const": true
    },
    "narration": {
      "type": "object",
      "properties": {
        "text_fallback": {
          "type": "string"
        },
        "relay": {
          "type": "string",
          "const": "verbatim"
        },
        "may_paraphrase": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "never_paraphrase": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "text_fallback",
        "relay",
        "may_paraphrase",
        "never_paraphrase"
      ],
      "additionalProperties": false
    },
    "pending_artifact": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "kind": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "kind",
            "title"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "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": "The wall THIS call hit, when it was refused (nothing generated, nothing charged); null when the turn went through. limits.wall is only the upcoming one."
    },
    "ttl_ms": {
      "type": "number",
      "const": 0,
      "description": "Never cache a beat."
    },
    "truncated": {
      "type": "boolean"
    },
    "milestone": {
      "description": "A progress milestone this step crossed. Say for_human and, on a yes, call get_journey_progress to show the map.",
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "percent",
            "stop"
          ]
        },
        "percent": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "for_human": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "percent",
        "title",
        "for_human"
      ],
      "additionalProperties": false
    },
    "ui": {
      "description": "Update for journey.map: the current stop, and the stop this beat visited for the first time.",
      "type": "object",
      "properties": {
        "current": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "newly_visited": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "current",
        "newly_visited"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "session",
    "beat_id",
    "turn_id",
    "node",
    "mode",
    "answer",
    "statement",
    "options",
    "media",
    "progress",
    "limits",
    "provenance",
    "locale",
    "content_is_data",
    "narration",
    "pending_artifact",
    "wall",
    "ttl_ms"
  ],
  "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/capxule-ai-beat"
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.