Documentation menu
POST/oauth/token
Access and price
| Auth | No key. Not metered. |
|---|---|
| Price | Not metered: no quota, no credit. |
What it does
Request bodies are application/x-www-form-urlencoded (RFC 6749 §4.1.3
: JSON is not an accepted encoding here and a client sending it gets an
honest invalid_request), and every error body is RFC 6749 shaped.
Call it
curl -fsS -X POST "https://api.mapmap.ai/oauth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d @request.jsonRequest body
application/x-www-form-urlencoded
grant_type=authorization_code&code=…&redirect_uri=…&client_id=…&code_verifier=… or grant_type=refresh_token&refresh_token=…&client_id=…
The OpenAPI document declares this body as a free-form JSON object with no field list, so there is nothing here to generate a table from. The prose above is what the gateway states about it; the raw document is the authority.
Responses
| Field | Type | Required | Description |
|---|---|---|---|
| access_token | string | no | The sno_… access token. |
| expires_in | integer | no | Access token lifetime, seconds. |
| refresh_token | string | no | The snr_… refresh token. Each use returns a new one. |
| scope | string | no | The granted scope. |
| token_type | string | no | Always Bearer. |
Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"access_token": "string",
"expires_in": 0,
"refresh_token": "string",
"scope": "string",
"token_type": "string"
}invalid_request, invalid_grant, invalid_client, unsupported_grant_type); never problem+jsonapplication/json · OAuthError
text/plain
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Keys and account
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId token