Get site

Get a single site from a server.


GET/api/servers/{server}/sites/{id}

Get site

This endpoint returns the details of a specific site on your server.

Request

GET
/api/servers/{server}/sites/{id}
curl -G "https://ploi.io/api/servers/{server}/sites/{id}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "server_id": 1,
    "status": "active",
    "domain": "domain1.com",
    "deploy_script": false,
    "web_directory": "/public",
    "project_type": null,
    "project_root": "/",
    "last_deploy_at": null,
    "system_user": null,
    "php_version": 7.2,
    "health_url": null,
    "has_repository": true,
    "created_at": "2019-07-29 10:27:32"
  }
}