Authentication is handled via standard OAuth 2.0 using Client Credential grant type to generate an access token.
POST
Content-Type: application/json
grant_type: is always “client_credentials”
The client_id and client_secret can be provisioned by Salary.com. Please reach out to your customer success manager.
{ "grant_type": "client_credentials", "client_id": "xxxxx", "client_secret": "xxxxx" }
curl --location 'https://companalystapi.salary.com/cloud/v1/token' \ --header 'Content-Type: application/json' \ --data '{ "grant_type": "client_credentials", "client_id": " xxxxx ", "client_secret": " xxxxx" }'
{ "access_token": "D549F20F-9412-44DB-A9EC-F1083162952C", "token_type": "Bearer", "expires_in": 86400 }
Pass this access_token in subsequent API requests in the Authorization header as a Bearer token.