API & MCP

Everything a person can do on OAuth Permission Explorer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

OAuth Permission Explorer

Paste OAuth scopes or a full authorization URL for Google, GitHub, Microsoft Graph, Slack or generic OpenID Connect. Every scope is explained from the provider's official documentation with a sensitivity rating; risky combinations (read + send mail, offline access to files, push code + delete repositories, CI workflow edits) and unsafe request settings (implicit flow, missing PKCE or state, plain-HTTP redirect) are flagged. Unknown scopes are listed, never guessed.

Inputs of OAuth Permission Explorer
FieldTypeDefaultDescription
request (required)textarea—Scopes or authorization URL. Scopes separated by spaces or commas, or the whole URL from the consent link.
providerselect (auto, google, github, microsoft, slack, oidc)"auto"Provider

Example request

Google consent URL with Gmail + offline access

curl -X POST https://oauthpermissionexplorer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"request":"https://accounts.google.com/o/oauth2/v2/auth?client_id=123.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapp.example%2Fcb&response_type=code&access_type=offline&prompt=consent&scope=openid%20email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.send&state=xyz","provider":"auto"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "oauth-permission-explorer": { "type": "http", "url": "https://oauthpermissionexplorer.usefulweb.site/mcp" }
  }
}