Properties
| Name | Type | Description |
|---|---|---|
| enabled | boolean | This determines whether the token is enabled or disabled. Default is true, it's enabled. |
| allowedOrigins | array | This determines the allowed origins for this token. Validates the `Origin` header. Default is any origin. Only relevant for `public` tokens. |
| allowedAssistantIds | array | This determines which assistantIds can be used when creating a call. Default is any assistantId. Only relevant for `public` tokens. |
| allowTransientAssistant | boolean | This determines whether transient assistants can be used when creating a call. Default is true. If `allowedAssistantIds` is provided, this is automatically false. Only relevant for `public` tokens. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/TokenRestrictions",
"title": "TokenRestrictions",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "This determines whether the token is enabled or disabled. Default is true, it's enabled."
},
"allowedOrigins": {
"description": "This determines the allowed origins for this token. Validates the `Origin` header. Default is any origin.\n\nOnly relevant for `public` tokens.",
"type": "array",
"items": {
"type": "string"
}
},
"allowedAssistantIds": {
"description": "This determines which assistantIds can be used when creating a call. Default is any assistantId.\n\nOnly relevant for `public` tokens.",
"type": "array",
"items": {
"type": "string"
}
},
"allowTransientAssistant": {
"type": "boolean",
"description": "This determines whether transient assistants can be used when creating a call. Default is true.\n\nIf `allowedAssistantIds` is provided, this is automatically false.\n\nOnly relevant for `public` tokens."
}
}
}
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/vapi-tokenrestrictions"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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.