Settings OAPI

You can update your Surpass instance’s public key (for use with JWT authentication) and enable or disable basic authentication using the Settings OAPI. For more information on JWT (JSON web tokens) authentication, read Connecting to the Surpass OAPI.

WARNING: Token authentication can be enforced as the only method of authentication available for your Surpass instance by disabling basic authentication using the Settings OAPI. However, it is imperative your private key is safely stored and accessible to you (and the Settings OAPI is configured with its paired public key) so that a signed token can be generated, otherwise no user will be able to access your Surpass instance.

Equally, if the Settings OAPI contains an incorrect public key, although a lost public key can be derived from its private key and re-added to your Surpass instance, with basic authentication disabled you would not be able to authenticate a request to do this.

This article explains what calls can be made to the Surpass OAPI using the Settings resource.

Import this API into your Postman Workspace

In This Article

Retrieving authentication settings

get /oapi/Settings

Send a request to retrieve the basic authentication status and active public key for your Surpass instance.

Updating authentication settings

put /oapi/Settings

Send a request to the endpoint to update whether basic authentication is enabled and/or the active public key for your Surpass instance.

Error Codes

Refer to the following table for information on error codes that may be encountered when using this resource.

Further reading

Read the following article to learn how to get started with the Surpass OAPI:

NOTE: This form is to provide feedback to help improve the Surpass Help documentation only. If you need live support, contact support@surpass.com.