API reference

Introspect and revoke

Check whether an OAuth token is live, and let a client give up its access.

Introspect a token#

POST/v1/oauth/:app_id/introspectApp key

RFC 7662. For the app's MCP server or gateway: checks a token's signature, issuer, expiry and that its grant is still active. Takes the app key in Authorization: Bearer.

tokenstringrequired
An access token or a refresh token (ort_...) issued by this app.
cURLbash
curl -X POST https://api.scute.io/v1/oauth/app_3mxZRrzWxhPZ08dXvqq6/introspect \  -H "Authorization: Bearer $SCUTE_APP_KEY" \  -d token=$ACCESS_TOKEN
Response 200, access tokenjson
{  "active": true,  "token_type": "access_token",  "sub": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee",  "client_id": "dcr_xxxxxxxxxxxxxxxxxxxxxxxx",  "scope": "mcp",  "aud": "https://mcp.acme.example",  "iss": "https://api.scute.io/v1/oauth/app_3mxZRrzWxhPZ08dXvqq6",  "iat": 1763460000,  "exp": 1763463600,  "jti": "6a1d2e3f-..."}

For a refresh token the response has active, token_type refresh_token, sub, client_id, scope, aud and exp. A token that is unknown, expired, already used or whose grant was revoked returns { "active": false }.

Revoke a token#

POST/v1/oauth/:app_id/revokeNone

RFC 7009. A client gives up its access: revoking a refresh token revokes the whole grant, so its access tokens stop passing introspection.

client_idstringrequired
The client that holds the token.
tokenstringrequired
A refresh token (ort_...).
cURLbash
curl -X POST https://api.scute.io/v1/oauth/app_3mxZRrzWxhPZ08dXvqq6/revoke \  -d client_id=dcr_xxxxxxxxxxxxxxxxxxxxxxxx \  -d token=ort_xxx

Always returns 200 with an empty body, whether or not anything was revoked.

The app can also revoke a grant from its backend: see grants.