Ploi Core
Ploi Core

Introduction

Your installation also offers the ability to use an API. Head over to the administration and press "Settings", after that you'll be able to enable the API at the bottom.

CleanShot 2020-09-21 at 15.10.38

Authorization

The token you have generated can be used as a bearer token against your API.

Authorization: Bearer API_TOKEN_HERE

In this cURL example we demonstrate how to authenticate with our API:

$ curl https://panel.examplehosting.com/api/users \
    -H 'Authorization: Bearer n3h4bZK1bCbQ2EBpibvWykSzP7aJuuXeJz...' \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json'