{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codeatlas-com-br/json-schema/codeatlas-com-br-token-request-schema.json",
  "title": "TokenRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codeatlas-com-br-openapi.yml#/components/schemas/TokenRequest",
  "type": "object",
  "required": [
    "grant_type"
  ],
  "properties": {
    "grant_type": {
      "type": "string",
      "enum": [
        "client_credentials",
        "urn:workos:agent-auth:grant-type:claim"
      ]
    },
    "client_id": {
      "type": "string"
    },
    "client_secret": {
      "type": "string"
    },
    "scope": {
      "type": "string",
      "const": "api:write",
      "default": "api:write"
    },
    "resource": {
      "type": "string",
      "enum": [
        "https://codeatlas.com.br/api/v1",
        "https://codeatlas.com.br/api/sandbox/v1"
      ],
      "default": "https://codeatlas.com.br/api/v1"
    },
    "claim_token": {
      "type": "string",
      "description": "For the claim grant: the claim_token from POST /agent/identity."
    }
  }
}