Request Headers

In this guide we'll look at the request headers that you should use while consuming our API.

Bearer token

You should use your bearer token on every request while using this API. Please refer to the Authentication guide to learn how to obtain a bearer token.

curl https://app.offerteadviseur.nl/api/ping \
  -H "Authorization: Bearer eyJ..."

Accept

You should set the Accept header to application/json to receive JSON responses from the API. This will make sure you won't receive any other type of response like plain HTML.

curl https://app.offerteadviseur.nl/api/ping \ -H "Accept: application/json"

Content-Type

When sending data to the API (POST, PUT, PATCH requests), you should set the Content-Type header to application/json to indicate that you're sending JSON data.

curl https://app.offerteadviseur.nl/api/leads \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{"website_code": "1cd440df63f796a1f69da652cd0209", "subcategory_id": "4"}'

Was this page helpful?