Authentication
You'll need to authenticate your requests to access any of the endpoints in the Sonder API. In a production environment, you may deploy the Sonder API locally to your partnered financial institution. In this guide, we'll look at how authentication works. Sonder offers industry-standard OAuth2 token authentication.
OAuth2 with Bearer Token
The recommended way to authenticate with the Sonder API is by using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the developer dashboard under API settings. Here's how to add the token to the request header using cURL:
Example request with bearer token
curl https://api.Sonder.chat/v1/conversations \
-H "Authorization: Bearer {token}"
Always keep your token safe and reset it if you suspect it has been compromised.
Local Deployments
If you are deploying the Sonder API locally to a partnered financial institution, please reach out to us at founders@sonderlabs.io. It is likely that you will need to utilize some kind of SSO solution in order to integrate auth into the financial institution. If this is the case, we will work with you to ensure that the Sonder API is properly integrated.