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."
}
}
}