Skip to main content

Authentication

To access API resources, you must authenticate. The API supports two types of authentication:

  • Bearer authentication
  • API Token authentication

Bearer authentication

Bearer authentication is a process that verifies a user's identity. You must provide your API token in the header of each request.

Usage example

To use bearer authentication, add the Authorization header with your token:

Authorization: Bearer your_api_token

API key authentication

API key authentication is a process that verifies a user's identity and may be simpler to use than bearer authentication. You will need to provide a valid API key in the header of each of your requests.

Usage example

To use API key authentication, add the api_token parameter with your API key when making your request:

https://canadamotorjobs.com/api/v1/{locale}/job-listings/list?api_token=your_api_key

Obtaining your API key

To obtain your API key api_token, please contact us at: developement@2hrtech.com.