authorization

Issue an OAuth 2.0 access token (Client Credentials)

Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.

post/oauth2/token

Request

  • Base URL
    https://api.notefile.net
  • URL
    https://api.notefile.net/oauth2/token
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring uuid required
client_secretstring password required
grant_type'client_credentials' required
scopestring

Space-delimited scopes.

Example request

{
  "client_id": "d37ae69a-c739-44e9-9722-81a4cb7aeb67",
  "client_secret": "2a40832d028a3e24a717f023fdcaa8ab452dd12223d472aff38223ffdfeee4bf",
  "grant_type": "client_credentials",
  "scope": "openid"
}

Response

Successful token response

access_tokenstring required

The issued access token

expires_ininteger required

Lifetime in seconds of the access token.

scopestring

Granted scopes (space-delimited).

token_typestring required

Usually 'bearer'

Example response

{
  "expires_in": 1799,
  "scope": "openid",
  "token_type": "bearer"
}

Changes

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