---
raw: true
search:
  tags:
    - Partner
    - POST
seo:
  description: >-
    wp.cloud site-logs. The same contract as logs/site. Reference for the POST
    /v0/atomic-api/site-logs/{site} endpoint in the Spacefast Partner API.
sidebar:
  label: Get web server logs (legacy path)
  badge: POST
title: Get web server logs (legacy path)
type: openapi-operation
---
wp.cloud site-logs. The same contract as logs/site.

`POST /v0/atomic-api/site-logs/{site}`

**Request body** (`application/json`, required)

- `start` (number | string, required) — Start of the log window.
- `end` (number | string, required) — End of the log window. Must not precede start.
- `page_size` (integer) — Maximum records per request. Default 500.
- `scroll_id` (string) — Cursor from the previous response. Send the same window and filters.
- `sort_order` (string) — Sort direction. Default "asc".
- `filter` (object) — Filter values in PHP array notation, for example filter\[status\]\[\]=404.

Request body example:

```json
{
  "start": 0,
  "end": 0,
  "page_size": 1,
  "scroll_id": "string",
  "sort_order": "asc",
  "filter": {
    "cached": [
      "string"
    ],
    "renderer": [
      "string"
    ],
    "request_type": [
      "string"
    ],
    "status": [
      -9007199254740991
    ],
    "user_ip": [
      "string"
    ]
  }
}
```

**Responses**

- `200` — Response for status 200
- `default` — wp.cloud error envelope. \`message\` explains the failure. \`data\` is the Spacefast problem document, with its stable \`code\`.

Response example, 200:

```json
{
  "message": "string",
  "data": {
    "total_results": 0,
    "logs": [
      {
        "property1": null,
        "property2": null
      }
    ],
    "scroll_id": "string"
  }
}
```
