Connecting to the scheduling system

Requests to the scheduling system must be authenticated using a bearer token. All pre-requisite data must also be created and configured in the Surpass Platform and Scheduler before requests to Scheduler are made. For more information read Preparing to integrate with the scheduling system.

This article explains how to connect to the scheduling system, which permissions are required to successfully call each API, and what data must be created in Surpass.

Import this API into your Postman Workspace

NOTE: This article documents the requests in the Authentication folder of the 'Scheduling System' Postman collection.
In this section

Authenticating requests to the scheduling system

To authenticate requests sent to Scheduler, first generate a bearer token by calling the token endpoint, and then pass your token in your requests.

Generating a bearer token

post /api/Token

Send a request to the endpoint to generate a bearer token.

Passing a bearer token

IMPORTANT: Although bearer tokens can be passed in the querystring of a URL, it is best practice to send them in an authorization header.

Send your bearer token in an authorization header. This is documented in the parameters tables of the reference documentation as follows:

Name

Parameter

Input

Description

 authorization

header

MANDATORY

Bearer {token}

A bearer token must be passed to authorise the user’s request, where {token} is the token string.

If using the ‘Scheduling System’ Postman collection, include your token in the Token field in Authorization:

All requests in the collection are configured to inherit this token.

Refreshing a bearer token

post /api/Token/Refresh

Send a request to the endpoint to refresh a bearer token.

Authorising requests to the scheduling system

As the Surpass Test Centre Network team will set up the necessary Scheduler configurations, any requisite user permissions impacting the authorisation of requests is already handled. For more information, read Preparing to integrate with the scheduling system.

Further reading

Now you know how to connect to the scheduling system, read the following articles to learn more: