{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskmodels-app/json-schema/riskmodels-app-oauth2-token-response-schema.json",
  "title": "OAuth2TokenResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riskmodels-app-authentication-api-openapi.yml#/components/schemas/OAuth2TokenResponse",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "An `rm_user_*` API key. Use directly as `Authorization: Bearer …` against any endpoint in this spec.\n"
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "expires_in": {
      "type": "integer",
      "description": "Access token lifetime in seconds (3600 = 1 hour)."
    },
    "refresh_token": {
      "type": "string",
      "description": "Valid 30 days and rotated on every use. Replaying a rotated token revokes the whole family for that user/client pair.\n"
    },
    "scope": {
      "type": "string"
    }
  }
}