Skip to main content
POST
/
oauth
/
token
Get an access token
curl --request POST \
  --url https://api.saturnshift.io/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data client_id=ss_client_live_xxx \
  --data client_secret=ss_secret_live_xxx \
  --data 'scope=transactions:read merchants:read'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "transactions:read merchants:read"
}

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
client_credentials
Example:

"client_credentials"

client_id
string
required
Example:

"ss_client_live_xxx"

client_secret
string
required
Example:

"ss_secret_live_xxx"

scope
string

Optional space-separated subset of your granted scopes.

Example:

"transactions:read merchants:read"

Response

Token issued

access_token
string
Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
Example:

"Bearer"

expires_in
integer
Example:

3600

scope
string
Example:

"transactions:read merchants:read"