Ploi API

List aliases

List all the aliases for a site

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

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/aliases" \
-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": {
        "aliases": [
            "first-alias.com",
            "second-alias.com"
        ],
        "count": 2,
        "main": "alias.com"
    }
}