{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/la-suite/json-schema/la-suite-token-request-schema.json",
  "title": "TokenRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/la-suite-visio-openapi.yml#/components/schemas/TokenRequest",
  "type": "object",
  "required": [
    "client_id",
    "client_secret",
    "grant_type",
    "scope"
  ],
  "properties": {
    "client_id": {
      "type": "string",
      "description": "Application client identifier"
    },
    "client_secret": {
      "type": "string",
      "format": "password",
      "writeOnly": true,
      "description": "Application secret key"
    },
    "grant_type": {
      "type": "string",
      "enum": [
        "client_credentials"
      ],
      "description": "OAuth2 grant type (must be 'client_credentials')"
    },
    "scope": {
      "type": "string",
      "format": "email",
      "description": "Email address of the user to delegate.\nThe application will act on behalf of this user.\nNote: This parameter is named 'scope' to align with OAuth2 conventions,\nbut accepts an email address to identify the user. This design allows\nfor future extensibility.\n"
    }
  }
}