PipesHub · Schema
OAuthTokenRequest
OAuth 2.0 Token Request (RFC 6749 Section 4.1.3). Request body for exchanging authorization code or credentials for tokens.
CompanyArtificial IntelligenceEnterprise SearchAI AgentsOpen SourceKnowledge ManagementWorkplace AI
Properties
| Name | Type | Description |
|---|---|---|
| grant_type | string | OAuth grant type: - `authorization_code`: Exchange auth code for tokens - `client_credentials`: Machine-to-machine auth - `refresh_token`: Get new access token using refresh token |
| code | string | Authorization code (required for authorization_code grant) |
| redirect_uri | string | Redirect URI (required for authorization_code grant) |
| client_id | string | Client ID (can also be sent via Basic auth header) |
| client_secret | string | Client secret (can also be sent via Basic auth header) |
| refresh_token | string | Refresh token (required for refresh_token grant) |
| scope | string | Requested scopes (optional, defaults to original grant scopes) |
| code_verifier | string | PKCE code verifier (RFC 7636). Required if code_challenge was used. Must be 43-128 characters from [A-Za-z0-9-._~] |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-oauth-token-request-schema.json",
"title": "OAuthTokenRequest",
"description": "OAuth 2.0 Token Request (RFC 6749 Section 4.1.3).\nRequest body for exchanging authorization code or credentials for tokens.\n",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/pipeshub-oauth-provider-api-openapi.yml#/components/schemas/OAuthTokenRequest",
"type": "object",
"properties": {
"grant_type": {
"type": "string",
"enum": [
"authorization_code",
"client_credentials",
"refresh_token"
],
"description": "OAuth grant type:\n- `authorization_code`: Exchange auth code for tokens\n- `client_credentials`: Machine-to-machine auth\n- `refresh_token`: Get new access token using refresh token\n"
},
"code": {
"type": "string",
"description": "Authorization code (required for authorization_code grant)"
},
"redirect_uri": {
"type": "string",
"format": "uri",
"description": "Redirect URI (required for authorization_code grant)"
},
"client_id": {
"type": "string",
"description": "Client ID (can also be sent via Basic auth header)"
},
"client_secret": {
"type": "string",
"description": "Client secret (can also be sent via Basic auth header)"
},
"refresh_token": {
"type": "string",
"description": "Refresh token (required for refresh_token grant)"
},
"scope": {
"type": "string",
"description": "Requested scopes (optional, defaults to original grant scopes)"
},
"code_verifier": {
"type": "string",
"description": "PKCE code verifier (RFC 7636). Required if code_challenge was used.\nMust be 43-128 characters from [A-Za-z0-9-._~]\n",
"pattern": "^[A-Za-z0-9\\-._~]{43,128}$"
}
},
"required": [
"grant_type"
]
}
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/pipeshub-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.