Ploi API
Ploi API

List tenants

List all the tenants for a site

How does the tenants feature work?

GET api/servers/{server}/sites/{site}/tenants

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/tenants" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": {
        "tenants": [
            "anotherdomain.com"
        ],
        "count": 1,
        "main": "domain.com"
    }
}