---
raw: true
search:
  tags:
    - Runtime
    - GET
seo:
  description: >-
    Returns the serving runtime's health and placement for this space:…
    Reference for the GET /v1/spaces/{spaceId}/runtime endpoint in the Spacefast
    API.
sidebar:
  label: Get a space's runtime status
  badge: GET
title: Get a space's runtime status
type: openapi-operation
---
Returns the serving runtime's health and placement for this space: instance, region, and serving state.

`GET /v1/spaces/{spaceId}/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": {
    "liveVersionId": "string",
    "pendingVersionId": "string",
    "liveUrl": "string",
    "runtimeState": "provisioning",
    "liveVersionStatus": "building",
    "pendingVersionStatus": "building",
    "operation": {
      "id": "string",
      "kind": "string",
      "status": "queued",
      "resources": [
        {
          "type": "string",
          "id": "string"
        }
      ],
      "progress": {
        "total": 0,
        "completed": 0,
        "failed": 0
      },
      "diagnostics": [
        {
          "code": "string",
          "severity": "info",
          "message": "string",
          "path": "string",
          "provider": "infra",
          "details": {
            "property1": null,
            "property2": null
          },
          "fix": "string",
          "retryable": true
        }
      ],
      "createdAt": "2019-08-24T14:15:22Z",
      "finishedAt": "2019-08-24T14:15:22Z"
    },
    "app": {
      "capsule": {
        "artifactId": "string",
        "appName": "string",
        "serverRuntime": "quickjs-rust",
        "inspect": {
          "policy": "private"
        },
        "install": {
          "runtimeKind": "zero",
          "engine": "quickjs-rust",
          "storageRoot": "__spacefast/zero",
          "artifactPath": "__spacefast/zero/artifact.json",
          "configPath": "__spacefast/zero/config.json",
          "binary": {
            "path": "__spacefast/zero/bin/stattic-runtime",
            "compatibilityTarget": {
              "profile": "linux-x86_64-gnu-v1",
              "os": "linux",
              "cpu": "x86_64",
              "libc": "glibc",
              "linking": "dynamic",
              "requireExecutableBit": true
            },
            "sha256": null,
            "required": true
          },
          "mysql": {
            "migrateAtFinalize": true,
            "blockIncompatibleRollback": true
          },
          "realtime": {
            "production": "central",
            "local": "foreground-cli-ws"
          }
        },
        "tables": [],
        "queries": [],
        "mutations": [],
        "actions": [
          "string"
        ],
        "endpoints": [],
        "sockets": [],
        "serverBundleSize": 0,
        "clientBundleSize": 0,
        "migrationCount": 0,
        "schemaHash": "string",
        "variables": {
          "source": "stattic-variables",
          "names": []
        },
        "realtime": {
          "centralUrl": null,
          "path": "string",
          "replayPath": "string",
          "replayUrl": "http://example.com",
          "runPath": "string",
          "runUrl": "http://example.com",
          "resourceKey": "string",
          "ticketPath": "string",
          "socketPath": "string",
          "spaceId": "string",
          "versionId": "string"
        }
      },
      "worker": {
        "artifactId": "string",
        "appName": "string",
        "entry": "string",
        "compatibilityDate": "string",
        "compatibilityFlags": [],
        "routes": [],
        "capabilities": {},
        "executionState": "absent",
        "bundleSize": 0,
        "bundleSha256": "string",
        "variables": {
          "source": "spacefast-variables",
          "names": []
        }
      }
    },
    "pendingApp": {
      "capsule": {
        "artifactId": "string",
        "appName": "string",
        "serverRuntime": "quickjs-rust",
        "inspect": {
          "policy": "private"
        },
        "install": {
          "runtimeKind": "zero",
          "engine": "quickjs-rust",
          "storageRoot": "__spacefast/zero",
          "artifactPath": "__spacefast/zero/artifact.json",
          "configPath": "__spacefast/zero/config.json",
          "binary": {
            "path": "__spacefast/zero/bin/stattic-runtime",
            "compatibilityTarget": {
              "profile": "linux-x86_64-gnu-v1",
              "os": "linux",
              "cpu": "x86_64",
              "libc": "glibc",
              "linking": "dynamic",
              "requireExecutableBit": true
            },
            "sha256": null,
            "required": true
          },
          "mysql": {
            "migrateAtFinalize": true,
            "blockIncompatibleRollback": true
          },
          "realtime": {
            "production": "central",
            "local": "foreground-cli-ws"
          }
        },
        "tables": [],
        "queries": [],
        "mutations": [],
        "actions": [
          "string"
        ],
        "endpoints": [],
        "sockets": [],
        "serverBundleSize": 0,
        "clientBundleSize": 0,
        "migrationCount": 0,
        "schemaHash": "string",
        "variables": {
          "source": "stattic-variables",
          "names": []
        },
        "realtime": {
          "centralUrl": null,
          "path": "string",
          "replayPath": "string",
          "replayUrl": "http://example.com",
          "runPath": "string",
          "runUrl": "http://example.com",
          "resourceKey": "string",
          "ticketPath": "string",
          "socketPath": "string",
          "spaceId": "string",
          "versionId": "string"
        }
      },
      "worker": {
        "artifactId": "string",
        "appName": "string",
        "entry": "string",
        "compatibilityDate": "string",
        "compatibilityFlags": [],
        "routes": [],
        "capabilities": {},
        "executionState": "absent",
        "bundleSize": 0,
        "bundleSha256": "string",
        "variables": {
          "source": "spacefast-variables",
          "names": []
        }
      }
    }
  }
}
```
