Clearstreet8e71 · Schema

CreateMessageRequest

Continue-thread message creation request body.

CompanyFintechBrokerageInstitutional

Properties

Name Type Description
account_id integernull Selected account for creation or the first account-linked turn. Omit for an unlinked conversation. An existing account link remains authoritative even when another account is selected.
capabilities array
context object
text string
View JSON Schema on GitHub

JSON Schema

clearstreet8e71-create-message-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clearstreet8e71/json-schema/clearstreet8e71-create-message-request-schema.json",
  "title": "CreateMessageRequest",
  "description": "Continue-thread message creation request body.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clearstreet8e71-omni-ai-api-openapi.yml#/components/schemas/CreateMessageRequest",
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "account_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Selected account for creation or the first account-linked turn. Omit for an unlinked conversation.\nAn existing account link remains authoritative even when another account is selected.",
      "minimum": 1
    },
    "capabilities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Capability"
      }
    },
    "context": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/TurnContext",
          "description": "Snapshots for this instant-chat message. Omission does not remove earlier attachments."
        }
      ]
    },
    "text": {
      "type": "string"
    }
  },
  "$defs": {
    "Capability": {
      "type": "string",
      "description": "Capability allowlist for structured actions.\n\nClients declare which capabilities they support when starting a run.\nOmni AI will only emit structured actions that match the declared capabilities.",
      "enum": [
        "PREFILL_ORDER",
        "OPEN_CHART",
        "OPEN_SCREENER",
        "OPEN_ENTITLEMENT_CONSENT"
      ]
    },
    "ContextItem": {
      "type": "object",
      "description": "A snapshot of the widget the user asks about.",
      "required": [
        "kind",
        "label",
        "data"
      ],
      "properties": {
        "captured_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Client-reported snapshot time. Omit when unknown."
        },
        "data": {
          "type": "object",
          "description": "Relevant widget data, selections, and units. Use strings for exact decimals and large IDs.",
          "additionalProperties": true
        },
        "kind": {
          "type": "string",
          "description": "Nonblank descriptive kind. New kinds do not require a backend release.",
          "minLength": 1
        },
        "label": {
          "type": "string",
          "description": "Nonblank attachment label for conversation rendering.",
          "minLength": 1
        }
      }
    },
    "TurnContext": {
      "type": "object",
      "description": "Client snapshots attached to one instant-chat user message.\n\nContext is separate from visible message text and does not grant account access.\nThe compact JSON representation must not exceed 64 KiB.",
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContextItem"
          },
          "description": "One to four snapshots. Each snapshot's data may contain at most 32 levels of nesting.",
          "maxItems": 4,
          "minItems": 1
        }
      }
    }
  }
}

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/clearstreet8e71-create-message-request"
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.