Core (Authz)

postGet an OAuth 2.0 token

Issues an access token with the client credentials grant. Authenticate with HTTP Basic, using your client's username and password: Authorization: Basic base64(username:password). Use the password exactly as you received it when the client was created.

curl --request POST \
  --url https://your-tenant.core.server.test.neobits.ai/v1/oauth2/token \
  --header 'Authorization: Basic REPLACE_BASIC_AUTH' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data resource=https%3A%2F%2Fyour-tenant.fuse.server.test.neobits.ai \
  --data 'scope=inquiry%3Aread+inquiry%3Awrite+person%3Aread' \
  --data session_duration=3600

Request

Headers

  • Authorizationstringrequired

    HTTP Basic authentication with your client's username and password: `Authorization: Basic base64(username:password)`.

Response

Headers

  • Content-Typestring

    The content type of the response.

Body

  • access_tokenstring

    The issued JWT access token

  • token_typestring

    Type of token

  • expires_ininteger

    Token lifetime in seconds. At most the client's `max_session_duration` (28800 seconds by default).

  • scopestring

    Space-separated list of scopes associated with the token