Authentication

In order to interact with our api you will need to authenticate yourself against the api.
This section will show you how to authenticate.

Issue an API Token

To create an API-Token visit the API Tokens section on your profile.

API Tokens

Copy the token that you created and use it for your requests.

Your first request

Let's start with a basic request to get all our domains that we already have created.

curl -X GET "https://servr.app/api/domains" \
    -H "Authorization: Bearer ymmi922wQwFW1hpm3NImOotRVWG8yrTQ2IoScQFl"

The request relies on two parts:

  • -URL
  • -Authorization header

The api token that you just created is used as a Bearer Token on the api. The token identifies you as our customer and gives you access to the api endpoints.