POST /oauth/token
restsupportedData loading & unloadingThe 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
| Name | In | Required | Description |
|---|---|---|---|
content_type | header | required | “application/x-www-form-urlencoded” |
grant_type | body | required | “urn:ietf:params:oauth:grant-type:jwt-bearer” |
scope | body | required | The hostname of the account. |
Authorization | header | required | Authentication token |
X-Snowflake-Authorization-Token-Type | header | optional | JWT/OAuth |
Content-Type (required when the request has a body) | header | required | Media 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-Encoding | header | optional | Specifies the compression format of the payload. Supported: gzip, zstd. |
User-Agent | header | optional | Identifies 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.