Skip to content

Authentication

API keys for REST, OAuth for MCP, and what revocation actually does.

Two credentials, two lifetimes

REST uses an API key you mint at Settings → API & MCP. Send it as a bearer token. It does not expire unless you say so.

REST

curl -s "https://api.askdeck.ai/v1/decks?limit=1" -H "Authorization: Bearer $ASKDECK_API_KEY"

MCP uses OAuth. You never paste a credential — you paste https://mcp-api.askdeck.ai/mcp and the client walks you through a browser sign-in. Access tokens are short-lived and re-checked on every call.

Access is an allow-list right now

While the surface is in preview, your account has to be enabled explicitly. A valid key on a non-enabled account returns 403 forbidden. That is not a scope problem and re-minting will not fix it.

Keep the issuer stable

MCP clients store your grant keyed by the server's issuer URL. If the issuer changes, every client you have connected loses its credential at the same moment and asks you to sign in again. We treat the issuer as frozen and announce any change on the changelog feed.