{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bluenexus-ai/json-schema/bluenexus-ai-post-auth-pat-request-schema.json",
  "title": "PostAuthPatRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/bluenexus-ai-openapi-generated.yml#/components/schemas/PostAuthPatRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Descriptive name for the token"
    },
    "scopes": {
      "type": "array",
      "description": "Scopes the token can access"
    },
    "expires_in": {
      "type": "integer",
      "description": "Expiration in seconds. Omit for no expiration"
    },
    "provider_permissions": {
      "type": "object",
      "description": "Per-provider access control"
    },
    "default_provider_permission": {
      "type": "string",
      "description": "Default permission for unlisted providers"
    },
    "agent_ids": {
      "type": "array",
      "description": "Agent IDs the token may access"
    },
    "knowledge_base_ids": {
      "type": "array",
      "description": "KB IDs the token may access"
    }
  },
  "required": [
    "name",
    "scopes"
  ]
}