Skip to main content
POST
/
auth
/
token
Issue an OAuth token
curl --request POST \
  --url https://api.engine.usesophic.com/auth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'grant_type=<unknown>' \
  --data 'client_secret=<string>' \
  --data 'scope=<string>'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "scope": "<string>",
  "refresh_token": "<string>"
}

Body

application/x-www-form-urlencoded

Form for the client_credentials grant type.

client_id
string
required

OAuth client ID.

grant_type
any
required

Must be client_credentials.

client_secret
string
required

OAuth client secret.

scope
string

Space-separated list of scopes.

Response

OK

access_token
string
required

The access token.

token_type
string
required

The token type. Always 'bearer' for JWT tokens.

expires_in
integer
required

The number of seconds until the token expires.

scope
string
required

The scopes of the token, comma-separated.

refresh_token
string | null

A refresh token for obtaining new access tokens without re-authentication.