Yelp · Schema

Access Token Request

Access Token Request as per https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3

RestaurantLocal SearchReviewsBusiness DataLocationPlacesGenerative AI

Properties

Name Type Description
client_id object
client_secret object
grant_type string Value MUST be set to "authorization_code".
code string Authorization code that is sent back to the redirect uri after a biz user authorized the client's oauth client.
redirect_uri string REQUIRED, if the "redirect_uri" parameter was included in the authorization request and their values MUST be identical.
code_verifier string PKCE code verifier (RFC 7636). The original random string used to generate the code_challenge sent in the authorization request. Required when the authorization request included a code_challenge. Must
code_challenge_method string The method used to derive the code_challenge from the code_verifier. Only S256 is supported.
View JSON Schema on GitHub

JSON Schema

yelp-token-authorization-code-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yelp/json-schema/yelp-token-authorization-code-request-schema.json",
  "title": "Access Token Request",
  "description": "Access Token Request as per https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3",
  "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/TokenAuthorizationCodeRequest",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/TokenRequestBase"
    },
    {
      "type": "object",
      "properties": {
        "grant_type": {
          "type": "string",
          "description": "Value MUST be set to \"authorization_code\".",
          "enum": [
            "authorization_code"
          ]
        },
        "code": {
          "type": "string",
          "description": "Authorization code that is sent back to the redirect uri after a biz user authorized the client's oauth client."
        },
        "redirect_uri": {
          "type": "string",
          "description": "REQUIRED, if the \"redirect_uri\" parameter was included in the authorization request and their values MUST be identical."
        },
        "code_verifier": {
          "type": "string",
          "description": "PKCE code verifier (RFC 7636). The original random string used to generate the\ncode_challenge sent in the authorization request. Required when the authorization\nrequest included a code_challenge. Must be between 43 and 128 characters,\nusing [A-Z] / [a-z] / [0-9] / \"-\" / \".\" / \"_\" / \"~\".\n",
          "minLength": 43,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9\\-._~]+$"
        },
        "code_challenge_method": {
          "type": "string",
          "description": "The method used to derive the code_challenge from the code_verifier.\nOnly S256 is supported.\n",
          "enum": [
            "S256"
          ]
        }
      },
      "required": [
        "authorization_code",
        "code"
      ]
    }
  ],
  "$defs": {
    "TokenRequestBase": {
      "type": "object",
      "properties": {
        "client_id": {
          "$ref": "#/$defs/client_id"
        },
        "client_secret": {
          "$ref": "#/$defs/client_secret"
        },
        "grant_type": {
          "type": "string",
          "enum": [
            "authorization_code",
            "refresh_token"
          ],
          "description": "Grant type, as per specified in OAuth2 RFC."
        }
      },
      "required": [
        "client_id",
        "client_secret",
        "grant_type"
      ]
    },
    "client_id": {
      "type": "string",
      "description": "ID assigned by Yelp for the third-party system that will make user-authorized requests to Yelp."
    },
    "client_secret": {
      "type": "string",
      "description": "Client secret assigned by Yelp for the third-party system that will make user-authorized requests to Yelp.",
      "maxLength": 64,
      "minLength": 64
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/yelp-token-authorization-code-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.