POST /oauth/token

restsupportedData loading & unloading

docs.snowflake.com ↗

Snowpipe Streaming

The Exchange Scoped Token returns a security token that can be used to access only the Snowpipe Streaming API-related service. This provides security protection for the customer.

Syntax

POST /oauth/token

Parameters

NameInRequiredDescription
content_typeheaderrequired“application/x-www-form-urlencoded”
grant_typebodyrequired“urn:ietf:params:oauth:grant-type:jwt-bearer”
scopebodyrequiredThe hostname of the account.
AuthorizationheaderrequiredAuthentication token
X-Snowflake-Authorization-Token-TypeheaderoptionalJWT/OAuth
Content-Type (required when the request has a body)headerrequiredMedia type of the request body. Use application/x-ndjson for append-rows requests. Use application/json for open-channel, drop-channel, and bulk channel-status bodies. Use application/x-www-form-urlencoded for the scoped-token exchange.
Content-EncodingheaderoptionalSpecifies the compression format of the payload. Supported: gzip, zstd.
User-AgentheaderoptionalIdentifies the client application. Recommended format: SnowpipeStreamingSDK/{version} ({platform}) {LANGUAGE}/{language_version} (app={partner-name}). Example: SnowpipeStreamingSDK/1.0.0 (Linux amd64) PYTHON/3.11.0 (app=MyPartnerApp).

Response

{ "token": "string" } Token (String): The scoped token.