{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-voice-token-request-schema.json",
  "title": "VoiceTokenRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-calls-api-openapi.yml#/components/schemas/VoiceTokenRequest",
  "properties": {
    "widget_id": {
      "type": "integer",
      "title": "Widget Id",
      "description": "The widget this call belongs to."
    },
    "end_user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "End User Id",
      "description": "Your own identifier for the person calling. It identifies them in the room and comes back inside `metadata` on the call events."
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "description": "Your own correlation data. It is stored with the call and returned on the call events, and is never shown to the agent."
    }
  },
  "type": "object",
  "required": [
    "widget_id"
  ]
}