List tenants

List all the tenants for a site.

How does the tenants feature work?


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

List all tenants

Returns a list of all tenants configured for the specified site, including the main domain and total count.

Request

GET
/api/servers/{server}/sites/{site}/tenants
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"

Response

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