Authentication

You'll need to authenticate your requests to access any of the endpoints in the ProSchedule API. In this guide, we'll look at how authentication works.

Get bearer token

To get an access token, you need make POST requset to auth endpoint. You need to add object with your tenantID and API key to request body. You can find it in your account section in admin tab of ProSchedule app.

Example request to get token

curl \
  --location "https://api.proschedule.ambraisoft.com/integrations/auth" \
  --data-raw '{
    "tenantID": "{tenantID}",
    "apiKey": "{apiKey}"
  }'

Add auth header

Here's how to add the token to the request header using cURL:

Example request with bearer token

curl \
  --location "https://api.proschedule.ambraisoft.com/integrations/shifts?businessDate=2024-01-01" \
  --header "Authorization: Bearer {token}" \

Always keep your token safe and reset it if you suspect it has been compromised.

Was this page helpful?