---
raw: true
search:
  tags:
    - Spaces
    - GET
seo:
  description: >-
    Returns whether the space has desired runtime changes pending,… Reference
    for the GET /v1/spaces/{spaceId}/apply-state endpoint in the Spacefast
    Partner API.
sidebar:
  label: Get a space's runtime apply state
  badge: GET
title: Get a space's runtime apply state
type: openapi-operation
---
Returns whether the space has desired runtime changes pending, applying, live, or failed. This is the space's own serving state, not an operation's: for the progress of a specific apply, poll the operation handle that apply returned.

`GET /v1/spaces/{spaceId}/apply-state`

**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": {
    "status": "live",
    "desiredRevision": "string",
    "appliedRevision": "string",
    "lastError": "string",
    "canApplyNow": true
  }
}
```
