Ploi API
Ploi API

List certificates

List all the certificates for a specific site

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

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/certificates" \
-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",
            "domain": "domain1.com",
            "site_id": 1,
            "server_id": 1,
            "expires_at": "2019-10-29 05:25:05",
            "created_at": "2019-07-31 08:24:54"
        }
    ],
    "links": {
        "first": "http://ploi.io/api\/servers/1/sites/1/certificates?page=1",
        "last": "http://ploi.io/api\/servers/1/sites/1/certificates?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://ploi.io/api/servers/1/sites/1/certificates",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}