Properties
| Name | Type | Description |
|---|---|---|
| grant_type | string | |
| client_id | string | |
| code | string | authorization_code: the code from the redirect |
| redirect_uri | string | authorization_code: the redirect_uri sent to the authorization endpoint |
| code_verifier | string | authorization_code: the PKCE verifier |
| refresh_token | string | refresh_token: the current refresh token |
| scope | string | refresh_token: optionally narrow the granted scopes |
| resource | string | RFC 8707: this site's https:// |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/yarnhen/json-schema/yarnhen-oauth-token-request-schema.json",
"title": "OAuthTokenRequest",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/yarnhen-oauth-api-openapi.yml#/components/schemas/OAuthTokenRequest",
"type": "object",
"required": [
"grant_type",
"client_id"
],
"properties": {
"grant_type": {
"type": "string",
"enum": [
"authorization_code",
"refresh_token"
]
},
"client_id": {
"type": "string"
},
"code": {
"type": "string",
"description": "authorization_code: the code from the redirect"
},
"redirect_uri": {
"type": "string",
"format": "uri",
"description": "authorization_code: the redirect_uri sent to the authorization endpoint"
},
"code_verifier": {
"type": "string",
"minLength": 43,
"maxLength": 128,
"description": "authorization_code: the PKCE verifier"
},
"refresh_token": {
"type": "string",
"description": "refresh_token: the current refresh token"
},
"scope": {
"type": "string",
"description": "refresh_token: optionally narrow the granted scopes"
},
"resource": {
"type": "string",
"format": "uri",
"description": "RFC 8707: this site's https://<domain>/mcp"
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/yarnhen-oauth-token-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.