Assinafy · Schema
OAuthTokenRequest
Body of `POST /v1/oauth/token`. Sent form-encoded per RFC 6749, or as JSON.
E-SignatureDocument ManagementBrazilFree
Properties
| Name | Type | Description |
|---|---|---|
| grant_type | string | `urn:ietf:params:oauth:grant-type:token-exchange` is for internal service clients only (Assinafy's own MCP server) — an ordinary confidential or public client authenticates with it and always gets `in |
| code | string | |
| redirect_uri | string | |
| code_verifier | string | RFC 7636: 43-128 characters from [A-Za-z0-9-._~]. Shorter values are rejected with `invalid_grant`. |
| refresh_token | string | |
| client_id | string | |
| client_secret | string | Confidential clients only. Public clients authenticate with PKCE and are never issued a secret; the token-exchange grant requires a confidential, internal-service client and therefore always requires |
| resource | string | RFC 8707 resource indicator. For `authorization_code`/`refresh_token`, optional; when present it must be the `resource` value published by /.well-known/oauth-protected-resource and must match the one |
| subject_token | string | Token-exchange grant only. The front-end resource's access token being traded in. Must be a live, original (never itself exchanged) token minted for a resource this server issues tokens for, other tha |
| subject_token_type | string | Token-exchange grant only. Required; only `urn:ietf:params:oauth:token-type:access_token` is supported. |
| requested_token_type | string | Token-exchange grant only. Optional; when present it must agree with the only type this server issues. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/assinafy-com-br/json-schema/assinafy-com-br-oauth-token-request-schema.json",
"title": "OAuthTokenRequest",
"description": "Body of `POST /v1/oauth/token`. Sent form-encoded per RFC 6749, or as JSON.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/assinafy-com-br-oauth-api-openapi.yml#/components/schemas/OAuthTokenRequest",
"required": [
"grant_type",
"client_id"
],
"properties": {
"grant_type": {
"description": "`urn:ietf:params:oauth:grant-type:token-exchange` is for internal service clients only (Assinafy's own MCP server) — an ordinary confidential or public client authenticates with it and always gets `invalid_client`, exactly as an unrecognized client would. Everyday integrators use `authorization_code` and `refresh_token`.",
"type": "string",
"enum": [
"authorization_code",
"refresh_token",
"urn:ietf:params:oauth:grant-type:token-exchange"
]
},
"code": {
"type": "string"
},
"redirect_uri": {
"type": "string",
"format": "uri"
},
"code_verifier": {
"description": "RFC 7636: 43-128 characters from [A-Za-z0-9-._~]. Shorter values are rejected with `invalid_grant`.",
"type": "string"
},
"refresh_token": {
"type": "string"
},
"client_id": {
"type": "string"
},
"client_secret": {
"description": "Confidential clients only. Public clients authenticate with PKCE and are never issued a secret; the token-exchange grant requires a confidential, internal-service client and therefore always requires this.",
"type": "string"
},
"resource": {
"description": "RFC 8707 resource indicator. For `authorization_code`/`refresh_token`, optional; when present it must be the `resource` value published by /.well-known/oauth-protected-resource and must match the one sent to /authorize, otherwise `invalid_target`. For the token-exchange grant it is REQUIRED and must equal this API's own resource identifier exactly (never a front-end resource such as the MCP server), otherwise `invalid_target`.",
"type": "string",
"format": "uri"
},
"subject_token": {
"description": "Token-exchange grant only. The front-end resource's access token being traded in. Must be a live, original (never itself exchanged) token minted for a resource this server issues tokens for, other than this API's own audience.",
"type": "string"
},
"subject_token_type": {
"description": "Token-exchange grant only. Required; only `urn:ietf:params:oauth:token-type:access_token` is supported.",
"type": "string",
"enum": [
"urn:ietf:params:oauth:token-type:access_token"
]
},
"requested_token_type": {
"description": "Token-exchange grant only. Optional; when present it must agree with the only type this server issues.",
"type": "string",
"enum": [
"urn:ietf:params:oauth:token-type:access_token"
]
}
},
"type": "object"
}
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/assinafy-com-br-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. 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.