To access the API, you need a "mandator" (in the form of a numerical ID, your client ID) and a "token" (your client secret).
To request access, send an email to email@example.com. Include the following details:
Technical contact email
Estimated number of jobs published per month
The ATS-API uses an OAuth2 application flow. We therefore have to obtain an access_token from an exchange endpoint. The exchange endpoint itself uses a Basic Authentication and we can retrieve a new session token with our mandator and token.
As specified by the OAuth2 flow we send the access_token as a Bearer token and attach it to the header of every subsequent request.
Here's an example of how to authenticate and obtain an access token using TypeScript and node-fetch:
Replace 'mandator' and 'token' with your actual credentials.
Upon successful authentication, the API will return an object similar to the one below: