{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/figshare/json-schema/figshare-oauth-token-schema.json",
  "title": "OAuthToken",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/figshare-oauth-api-openapi.yml#/components/schemas/OAuthToken",
  "required": [
    "access_token",
    "expires_in",
    "token_type"
  ],
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The OAuth access token"
    },
    "token": {
      "type": "string",
      "description": "The OAuth access token"
    },
    "token_type": {
      "type": "string",
      "description": "The type of token issued"
    },
    "expires_in": {
      "type": "integer",
      "description": "Token expiration time in seconds"
    },
    "refresh_token": {
      "type": "string",
      "description": "The refresh token (only provided for certain grant types)"
    },
    "scope": {
      "type": "string",
      "description": "The scope of the access token"
    }
  },
  "x-tag": "oauth"
}