OAuth2TokenRequest
Shape depends on `grant_type`. For `authorization_code`: `code`, `redirect_uri`, `client_id`, `code_verifier` are all required. For `refresh_token`: `refresh_token` and `client_id` are required.
Properties
| Name | Type | Description |
|---|---|---|
| grant_type | string | `client_credentials` is not supported and returns `unsupported_grant_type`. |
| code | string | Single-use authorization code (authorization_code grant). |
| redirect_uri | string | Must match the URI the code was issued for (authorization_code grant). |
| client_id | string | Client id from `POST /api/oauth/register`. |
| code_verifier | string | PKCE verifier; must hash (S256) to the registered code_challenge. |
| refresh_token | string | Rotating refresh token (refresh_token grant). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/riskmodels-app/json-schema/riskmodels-app-oauth2-token-request-schema.json",
"title": "OAuth2TokenRequest",
"description": "Shape depends on `grant_type`. For `authorization_code`: `code`, `redirect_uri`, `client_id`, `code_verifier` are all required. For `refresh_token`: `refresh_token` and `client_id` are required.\n",
"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/OAuth2TokenRequest",
"type": "object",
"required": [
"grant_type"
],
"properties": {
"grant_type": {
"type": "string",
"enum": [
"authorization_code",
"refresh_token"
],
"description": "`client_credentials` is not supported and returns `unsupported_grant_type`.\n"
},
"code": {
"type": "string",
"description": "Single-use authorization code (authorization_code grant)."
},
"redirect_uri": {
"type": "string",
"format": "uri",
"description": "Must match the URI the code was issued for (authorization_code grant)."
},
"client_id": {
"type": "string",
"format": "uuid",
"description": "Client id from `POST /api/oauth/register`."
},
"code_verifier": {
"type": "string",
"description": "PKCE verifier; must hash (S256) to the registered code_challenge."
},
"refresh_token": {
"type": "string",
"description": "Rotating refresh token (refresh_token grant)."
}
}
}
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
curl "https://apis.io/api/v1/json-schemas/riskmodels-app-oauth2-token-request"
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.