Authentication
The Payroc API uses Bearer tokens to authenticate requests. To generate a Bearer token, include your API token in the ‘x-api-key’ parameter in the header of a request to the Payroc Identity Service.
API key best practices
- Grant API keys with the least amount of privilege to carry out target tasks.
- Do not share API keys.
- Do not use API keys in publicly accessible areas, for example, client-side code.
Important: Use HTTPS for all requests to the Payroc API. We reject all HTTP requests, and all requests that are not properly authenticated.
Request
Identity Service endpoints:
Response
Include the access_token as a Bearer token in all future requests to the Payroc API, for example: