Authentication

You'll need to authenticate your requests to access any of the endpoints in the Protocol API. In this guide, we'll look at how authentication works. Protocol offers two ways to authenticate your API requests: Basic authentication and OAuth2 with a token — OAuth2 is the recommended way.

OAuth2 with bearer token

The recommended way to authenticate with the Delio API is by using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the Delio Core Platform Settings under API Gateway. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://{my-delio-platform}.delio.online/kong/core/api/gateway/deals \
  -H "Authorization: Bearer {token}"
  • Please don't commit your Delio API Key password to GitHub!
  • Always keep your token safe and reset it if you suspect it has been compromised.