{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customdomain-ai/json-schema/customdomain-ai-agent-token-response-schema.json",
  "title": "AgentTokenResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customdomain-ai-agents-api-openapi.yml#/components/schemas/AgentTokenResponse",
  "type": "object",
  "required": [
    "access_token",
    "token_type",
    "expires_in"
  ],
  "properties": {
    "access_token": {
      "type": "string",
      "description": "An ES256 JWT. Verify it against `/.well-known/jwks.json`."
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "expires_in": {
      "type": "integer",
      "description": "Seconds the access token lives (900)."
    },
    "refresh_token": {
      "type": "string",
      "description": "A new refresh token. The one just used no longer works."
    },
    "scope": {
      "type": "string",
      "description": "The scopes the grant carries, separated by spaces."
    }
  }
}