Authorization

Authenticate your API requests using bearer tokens.


Get your API token

Login to your account and navigate to your profile to generate a new API token. You can name your API token so you are aware of where the token is being used, this way you can recognize and delete it later when you do not need it anymore.

Authorization Header

Authorization: Bearer {your-api-token}

Authenticate with API

The token you have received can be used as a bearer token against our API. Include it in the Authorization header of every request.

Example Request

curl https://ploi.io/api/servers \
  -H "Authorization: Bearer n3h4bZK1bCbQ2EBpibvWykSzP7aJuuXeJz..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"