Ploi API
Ploi API

Get test domain

Get testing domain details (if enabled)

GET api/servers/{server}/sites/{id}/test-domain

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{id}/test-domain" \
-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,
        "domain": "wordpress.com",
        "test_domain": "mellow-winds-034wtvtzb8.ploi.link",
        "full_test_domain": "https://mellow-winds-034wtvtzb8.ploi.link"
    }
}