Ploi API

List redirects

List all the certificates for a specific site

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

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/redirects" \
-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": [
        {
            "id": 1,
            "status": "active",
            "redirect_from": "/",
            "redirect_to": "/home",
            "type": "permanent"
        }
    ],
    "links": {
        "first": "https://ploi.io/api/servers/1/sites/1/redirects?page=1",
        "last": "https://ploi.io/api/servers/1/sites/1/redirects?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://ploi.io/api/servers/1/sites/1/redirects",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}