mcp

POST /v1/oauth/token

Exchange a code or refresh token for MCP access tokens (OAuth 2.1 token endpoint).

All mcp endpoints

All developer docs →

Authentication

This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/oauth/token \
  -H "Content-Type: application/json" \
  -d '{ "grant_type": <string<authorization_code, refresh_token>> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

authorization_code (with the PKCE code_verifier; a code is single-use and lives two minutes) or refresh_token (rotating: each refresh returns a new pair, and presenting a used refresh token again revokes the whole connection). Access tokens (zoat_…) last one hour and are accepted only on /v1/mcp. Confidential clients authenticate with HTTP Basic or client_secret_post. Unauthenticated otherwise.

Request body

NameTypeRequiredWhat it is
grant_typestring<authorization_code, refresh_token>Yes—
codestringNo—
redirect_uristringNo—
code_verifierstringNo—
refresh_tokenstringNo—
client_idstringNo—
client_secretstringNo—

Response

NameTypeRequiredWhat it is
access_tokenstringYeszoat_… — accepted only on /v1/mcp.
token_typestring<Bearer>Yes—
expires_inintegerYes—
refresh_tokenstringYeszort_… — single use; rotates on every refresh.
scopestringYesThe granted permission keys

Errors this endpoint can return

400 · 401 · 503