{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-oauth-token-response-data-schema.json",
  "title": "OAuthTokenResponseData",
  "description": "Token response returned by `POST /v1/oauth/token` and\n`GET /v1/oauth/tokens/by-third-party-code/{thirdPartyCode}`.\nThe `access_token` is an Aura Historia bearer access token. `expires_in` is omitted\nfor non-expiring tokens. `third_party_exchange_code` is only present on the\ndirect token exchange response.\n",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/aura-historia-com-internal-api-filtered-openapi.yml#/components/schemas/OAuthTokenResponseData",
  "type": "object",
  "required": [
    "access_token",
    "token_type",
    "scope"
  ],
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The issued Aura Historia access token (plaintext bearer value)."
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "expires_in": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Seconds until expiry; omitted when the token does not expire."
    },
    "scope": {
      "type": "string",
      "description": "Space-separated list of scopes granted to the access token."
    },
    "third_party_exchange_code": {
      "type": "string",
      "format": "uuid",
      "description": "Optional one-time exchange code returned by `POST /v1/oauth/token`.\nIt can be redeemed once via `GET /v1/oauth/tokens/by-third-party-code/{thirdPartyCode}`\nwithin 60 seconds to obtain the same access token.\n"
    }
  }
}