auth

Issue an OAuth token

Changed on

Issue an OAuth token using client credentials.

post/auth/token

Request

  • Base URL
    https://api.engine.usesophic.com
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring required

OAuth client ID.

client_secretstring required

OAuth client secret.

grant_type'client_credentials' required

Must be client_credentials.

scopestring

Space-separated list of scopes.

Response

OK

access_tokenstring required

The access token.

expires_ininteger required

The number of seconds until the token expires.

refresh_tokenstring nullable

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

scopestring required

The scopes of the token, comma-separated.

token_typestring required

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

Changes

    • info

      the request property type was generalized from no type to string

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status