Skip to navigation

Get access token

View as Markdown

Use your Sigma client ID and secret with this endpoint to generate an access token valid for one hour, or to refresh your token. You can then use the access token to authenticate requests made to the Sigma API.

To make any API call with the Sigma API, including calls from the API documentation, you must have a valid bearer token. To generate a token, you must have a valid Client ID and Secret. See Generate Sigma API client credentials.

You make all API calls to a specific URL that corresponds to the cloud where your Sigma environment is hosted. Set the Base URL to the relevant URL for your environment. For details, see Identify your API request URL.

Generate a token by sending a POST request to this /v2/auth/token endpoint, or use the Try It! option on this page.

Usage notes

  • The API token is valid for 1 hour. When the token expires, an endpoint response returns an unauthorized error.
  • Refresh your access token before it expires using the refresh_token option.
  • If your client credentials are owned by a user assigned the Admin account type, you can generate an access token as a specific user using impersonation.
  • By default, the token is granted the api:access scope. To use the token with the Sigma MCP server, include the mcp:access scope in your request (Beta).

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Request

The request body.
grant_typeenumRequiredDefaults to client_credentials

Set to client_credentials to retrieve an access token.

Allowed values:
client_idstringRequired
Your API client ID.
client_secretstringRequiredformat: "password"
Your API client secret.
scopestringOptional

The scopes to request for the token. Request api:access to access the Sigma REST API, mcp:access to access the Sigma MCP server, or send both scopes, space-delimited, to use one token for both. Defaults to api:access when omitted. On refresh, emits the originally granted scopes.

Beta: This documentation describes a public beta feature and is subject to the Beta features disclaimer.

Response

The response body.
access_tokenstring
Token used to access the API and make requests.
token_typestring
The type of token issued.
expires_ininteger
The number of seconds until the access token expires.
refresh_tokenstringOptional
Refresh token used to refresh the access token.
scopestringOptional

Space-delimited scopes granted to this token.

Beta: This documentation describes a public beta feature and is subject to the Beta features disclaimer.