Token request
Form-encoded body. Fields depend on `grant_type`; client credentials depend on the client's authentication method.
Properties
| Name | Type | Description |
|---|---|---|
| grant_type | string | |
| code | string | `authorization_code` — the code from the redirect. |
| redirect_uri | string | `authorization_code` — must equal the value used at `/auth`. |
| code_verifier | string | `authorization_code` — PKCE verifier (43–128 chars) whose S256 hash was sent as `code_challenge`. |
| refresh_token | string | `refresh_token` grant. |
| device_code | string | `device_code` grant — from `/device/auth`. |
| scope | string | Optional down-scoping on refresh. |
| resource | string | RFC 8707 resource indicator. |
| client_id | string | Public clients (`none`) and `client_secret_post`. |
| client_secret | string | `client_secret_post` only. |
| client_assertion_type | string | `private_key_jwt` only. |
| client_assertion | string | `private_key_jwt` — JWT signed with a key from the client's registered `jwks` / `jwks_uri`. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-token-request-schema.json",
"title": "Token request",
"description": "Form-encoded body. Fields depend on `grant_type`; client credentials depend on the client's authentication method.",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/codai-ro-auth-openapi.yml#/components/schemas/TokenRequest",
"type": "object",
"required": [
"grant_type"
],
"properties": {
"grant_type": {
"type": "string",
"enum": [
"authorization_code",
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code"
]
},
"code": {
"type": "string",
"description": "`authorization_code` — the code from the redirect."
},
"redirect_uri": {
"type": "string",
"format": "uri",
"description": "`authorization_code` — must equal the value used at `/auth`."
},
"code_verifier": {
"type": "string",
"description": "`authorization_code` — PKCE verifier (43–128 chars) whose S256 hash was sent as `code_challenge`."
},
"refresh_token": {
"type": "string",
"description": "`refresh_token` grant."
},
"device_code": {
"type": "string",
"description": "`device_code` grant — from `/device/auth`."
},
"scope": {
"type": "string",
"description": "Optional down-scoping on refresh."
},
"resource": {
"type": "string",
"format": "uri",
"description": "RFC 8707 resource indicator."
},
"client_id": {
"type": "string",
"description": "Public clients (`none`) and `client_secret_post`."
},
"client_secret": {
"type": "string",
"description": "`client_secret_post` only."
},
"client_assertion_type": {
"type": "string",
"const": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
"description": "`private_key_jwt` only."
},
"client_assertion": {
"type": "string",
"description": "`private_key_jwt` — JWT signed with a key from the client's registered `jwks` / `jwks_uri`."
}
}
}
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/codai-ro-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.