Token generation

Generate an OAuth 2.0 token

This request allows you to generate an OAuth 2.0 token using client_id and client_secret, for more information on the operation, please visit our <a href="https://developer.officernd.com/docs/authentication">guide</a>.

post/oauth/token

Request

  • Base URL
    https://identity.officernd.com
  • URL
    https://identity.officernd.com/oauth/token
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring required

The client_id of your application.

client_secretstring required

The client_secret of your application.

grant_typestring required

When generating an OAuth 2.0 token the grant_type should always be set to "client_credentials".

scopestring required

The scope of your application.

Response

Token was generated successfully.

tokenstring

The token which can be used for authentication.

token_typestring

The token type.

expires_instring

The remaining time until the token expires in seconds. The token always expires after an hour.

scopestring

The token scope.

Example response

{
  "token": "594db43da0955d9d51604973ad494fc819d40870",
  "token_type": "Bearer",
  "expires_in": 3599,
  "scope": "officernd.api.read officernd.api.write"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.