Authentication

You'll need to authenticate your requests to access any of the endpoints in the Offerte Adviseur API. In this guide, we'll look at how authentication works. Offerte Adviseur uses a bearer token to authenticate your API requests.


Use API token

To use the Offerte Adviseur API you need to have an user account on the website. If you don't yet have an account, you can create one here. Once you have an account, please contact us to request API credentials.


Test your token

You can use this ping endpoint to test if your token is working correctly.

Request

GET
/v1/ping
curl https://app.offerteadviseur.nl/api/v1/ping \
  -H "Authorization: Bearer eyJ..." \
  -H "Accept: application/json"

Successfull Response

{
  "result": "pong"
}

Error response

{
  "type": "api_unauthenticated",
  "message": "Unauthenticated",
  "documentation_url": "https://docs.app.offerteadviseur.nl/authentication",
}

Was this page helpful?