{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yelp/json-schema/yelp-token-refresh-token-response-schema.json",
  "title": "Response when calling this endpoint using a refresh token.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yelp-oauth-authorization-v2-api-openapi.yml#/components/schemas/TokenRefreshTokenResponse",
  "type": "object",
  "properties": {
    "access_token": {
      "$ref": "#/$defs/token",
      "description": "Token issued by the authorization server. Tokens will be valid for 7 days."
    },
    "expires_in": {
      "description": "Seconds until token expires.",
      "type": "integer"
    },
    "expires_on": {
      "description": "The expiration time of the access token in ISO8601 format.",
      "type": "string",
      "format": "date-time"
    },
    "token_type": {
      "description": "The type of token issued. Default to ‘Bearer’",
      "type": "string"
    }
  },
  "required": [
    "access_token",
    "expires_in",
    "expires_on",
    "token_type"
  ],
  "$defs": {
    "token": {
      "type": "string",
      "maxLength": 128,
      "minLength": 128,
      "pattern": "[A-Za-z0-9+/=]+"
    }
  }
}