---
raw: true
search:
  tags:
    - Activity
    - GET
seo:
  description: >-
    Returns log lines written by the space's own code in the… Reference for the
    GET /v1/spaces/{spaceId}/logs/runtime endpoint in the Spacefast Partner API.
sidebar:
  label: Read a space's runtime logs
  badge: GET
title: Read a space's runtime logs
type: openapi-operation
---
Returns log lines written by the space's own code in the requested window — a Zero capsule's queries and mutations, a PHP function, or a Functions worker's handler. Returns empty data for a static space. An empty page with `hasMore: true` means the scan stopped early, not that the log ended. Lines are collected after the response returns, shipped off the box and indexed before they can be read back, so a line a request just wrote will not be here yet. This is not a live stream, and how far behind it runs is the provider's ingest delay rather than a number we control.

`GET /v1/spaces/{spaceId}/logs/runtime`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": [
    {
      "id": "string",
      "timestamp": "2019-08-24T14:15:22Z",
      "level": "debug",
      "requestId": "string",
      "versionId": "string",
      "handlerName": "string",
      "message": "string",
      "metadata": {}
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  },
  "warnings": [
    {
      "code": "string",
      "severity": "info",
      "message": "string",
      "path": "string",
      "provider": "infra",
      "details": {
        "property1": null,
        "property2": null
      },
      "fix": "string",
      "retryable": true
    }
  ]
}
```
