Authenticates a service account using the OAuth2 client credentials flow. Returns an access token used to authorize all other API requests. client_id and client_secret are obtained from Hatif's website as follows. Settings → API Connect → API Credentials.Note: This endpoint should only be called from a trusted server-side environment (backend, script, desktop app). Calling it from a browser-side JavaScript will result in a 500 error since the client_secret would be exposed.
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/x-www-form-urlencoded
Responses
🟢200OK
application/json
Returns the access token to use for authenticating subsequent API requests.