Vapi · Schema

CreateTokenDTO

AIVoiceAgentsRealtimeCPaaS

Properties

Name Type Description
tag string This is the tag for the token. It represents its scope.
name string This is the name of the token. This is just for your own reference.
restrictions object This are the restrictions for the token.
View JSON Schema on GitHub

JSON Schema

vapi-createtokendto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateTokenDTO",
  "title": "CreateTokenDTO",
  "type": "object",
  "properties": {
    "tag": {
      "type": "string",
      "description": "This is the tag for the token. It represents its scope.",
      "enum": [
        "private",
        "public"
      ]
    },
    "name": {
      "type": "string",
      "description": "This is the name of the token. This is just for your own reference.",
      "maxLength": 40
    },
    "restrictions": {
      "description": "This are the restrictions for the token.",
      "allOf": [
        {
          "$ref": "#/components/schemas/TokenRestrictions"
        }
      ]
    }
  }
}