{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infiniteaudience-ai/json-schema/infiniteaudience-ai-oauth-token-response-schema.json",
  "title": "OAuthTokenResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infiniteaudience-ai-oauth-api-openapi.yml#/components/schemas/OAuthTokenResponse",
  "type": "object",
  "required": [
    "access_token",
    "token_type",
    "expires_in",
    "refresh_token",
    "scope"
  ],
  "properties": {
    "access_token": {
      "type": "string",
      "description": "Opaque bearer token. Use exactly like an API-key-derived one: `Authorization: Bearer <access_token>`."
    },
    "id_token": {
      "type": "string",
      "description": "RS256 OIDC ID token, present only when the person-bound MCP grant includes openid."
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "expires_in": {
      "type": "integer",
      "description": "Seconds until the access token expires (1800)."
    },
    "refresh_token": {
      "type": "string",
      "description": "Supersedes any previously-issued refresh token for this connection — the old one is now rejected."
    },
    "scope": {
      "type": "string",
      "description": "Space-delimited granted scopes."
    }
  }
}