Snowflake OAuth Scopes
Snowflake publishes 5 OAuth 2.0 scopes via the authorizationCode and implicit flows. Scopes are the fine-grained permissions an application requests at authorization time to act against the Snowflake API on a user’s behalf.
Tokens are issued from https://org-account.snowflakecomputing.com/oauth/token-request.
This index is generated from the provider’s OpenAPI security definitions (and, where available, its documented scope reference) and refreshes on every APIs.io network build. Browse every provider’s scopes at scopes.apis.io.
OAuth endpoints
https://org-account.snowflakecomputing.com/oauth/authorize /oauth/authorize
https://org-account.snowflakecomputing.com/oauth/token-request
authorizationCodeimplicit
Scopes (5)
| Scope | Description | Flows |
|---|---|---|
| session:role: |
Restricts the access token to a single Snowflake role. The session runs as that role and cannot switch. This is the least-privilege scope form and the one to use for machine and agent credentials. | authorizationCode, implicit |
| session:role-encoded: |
Same as session:role but URL-encodes the role name. Use for roles containing reserved characters. | authorizationCode |
| session:role-any | Requests a session that can switch its primary role at runtime with USE ROLE, rather than being pinned to one. Requires OAUTH_ANY_ROLE_MODE to be enabled on the security integration. | authorizationCode |
| session:role:PUBLIC | The concrete instance of session:role that appears in the contract's own example. PUBLIC is the default role every Snowflake user holds; it grants almost nothing on its own. | authorizationCode |
| refresh_token | Requested alongside a role scope in the authorization URL. Snowflake then presents the user with the option to consent to offline access and issues a refresh token, so the client can renew without another interactive authorization. | authorizationCode |
📄 Provider scope reference: https://docs.snowflake.com/en/user-guide/oauth-customhttps://docs.snowflake.com/en/user-guide/oauth-ext-overviewhttps://docs.snowflake.com/en/developer-guide/sql-api/authenticating
Source
OAuth Scopes
Work with this as data
Every scope set here is available over the APIs.io API and to AI agents over MCP.