postGet an OAuth 2.0 token

Issues access tokens using the client credentials grant type

curl --request POST \
  --url https://api.test.neobits.no/core/oauth2/token \
  --header 'Authorization: Basic REPLACE_BASIC_AUTH' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data resource=string \
  --data scope=string \
  --data role=string

Request

Headers

  • Authorization•string

    Basic authentication, base64 encoded username:password.

Response

Headers

  • Content-Type•string

    The content type of the response.

Body

  • access_token•string

    The issued JWT access token

  • token_type•string

    Type of token

  • expires_in•integer

    Token lifetime in seconds

  • scope•string

    Space-separated list of scopes associated with the token