---
raw: true
search:
  tags:
    - Versions
    - GET
seo:
  description: >-
    Lists space versions, newest first. Each item includes its status, number,…
    Reference for the GET /v1/spaces/{spaceId}/versions endpoint in the
    Spacefast API.
sidebar:
  label: List a space's versions
  badge: GET
title: List a space's versions
type: openapi-operation
---
Lists space versions, newest first. Each item includes its status, number, and permanent Version URL.

`GET /v1/spaces/{spaceId}/versions`

**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",
      "ref": "string",
      "number": 1,
      "spaceId": "string",
      "source": {
        "kind": "direct_upload",
        "client": "string",
        "branch": "string",
        "commit": "string",
        "message": "string",
        "dirty": true,
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "git": {
          "repository": "string",
          "repositoryFullName": "string",
          "repositoryUrl": "string",
          "ref": "string",
          "branch": "string",
          "branchAliasUrl": "string",
          "commit": "string",
          "commitSha": "string",
          "pullRequestNumber": 0,
          "property1": null,
          "property2": null
        }
      },
      "publisher": {
        "type": "user",
        "displayName": "string",
        "avatarUrl": "string",
        "authorizedBy": {
          "displayName": "string",
          "avatarUrl": "string"
        }
      },
      "status": "building",
      "failureCode": "string",
      "failureMessage": "string",
      "failedStage": "string",
      "manifestHash": "string",
      "buildId": "string",
      "gitCommitSha": "string",
      "importedFromVersionId": "string",
      "variables": null,
      "fileCount": -9007199254740991,
      "totalBytes": -9007199254740991,
      "filesAddedCount": 0,
      "filesChangedCount": 0,
      "filesRemovedCount": 0,
      "pendingUploads": [
        {
          "path": "string",
          "size": 0,
          "sha256": "string",
          "sourceUrl": "http://example.com"
        }
      ],
      "skippedPaths": [
        "string"
      ],
      "immutableUrl": "string",
      "immutableUrlStatus": "pending",
      "isCurrentProduction": true,
      "siteTitle": "string",
      "config": {
        "index": "string",
        "fallback": "string",
        "cleanUrls": true,
        "listing": true,
        "meta": {
          "title": "string",
          "description": "string",
          "image": "string",
          "favicon": "string"
        },
        "superpowers": {
          "enabled": true,
          "disable_all_injection": true,
          "googleAnalytics": {
            "enabled": true,
            "measurementId": "string"
          },
          "googleTagManager": {
            "enabled": true,
            "containerId": "string"
          },
          "javascriptTags": [
            {
              "id": "string",
              "name": "string",
              "enabled": true,
              "code": "string"
            }
          ],
          "tags": {
            "inheritance": {
              "inherited": true,
              "overrides": [
                {
                  "tagId": "string",
                  "disabled": false,
                  "reason": "string"
                }
              ]
            },
            "requireReview": true
          }
        },
        "templates": [
          "string"
        ],
        "theme": {
          "accent": "string",
          "background": "string",
          "logo": "string",
          "name": "string",
          "font": "string",
          "hideSpacefastBranding": true
        },
        "collab": {
          "ui": "default"
        },
        "build": {
          "rootDirectory": "string",
          "installDirectory": "string",
          "installCommand": "string",
          "buildCommand": "string",
          "outputDirectory": "string",
          "ignoredBuildCommand": "string",
          "frameworkPreset": "string",
          "platformPreset": "string",
          "allowUnsupportedPlatformFeatures": true,
          "timeoutSeconds": 60
        },
        "placement": {
          "burstable": true,
          "edge": true
        },
        "markdownNegotiation": true,
        "firewall": [
          {
            "name": "string",
            "description": "string",
            "action": "block",
            "status": 400,
            "match": {
              "path": "string",
              "host": "string",
              "method": "string",
              "ip": "string",
              "country": "string",
              "asn": "string",
              "userAgent": "string",
              "referer": "string",
              "header": {
                "property1": "string",
                "property2": "string"
              },
              "cookie": {
                "property1": "string",
                "property2": "string"
              },
              "query": {
                "property1": "string",
                "property2": "string"
              },
              "extension": "string",
              "ja3": "string",
              "ja4": "string"
            },
            "any": true
          }
        ],
        "cache": {
          "bypass": [
            {
              "name": "string",
              "description": "string",
              "match": {
                "path": "string",
                "host": "string",
                "method": "string",
                "ip": "string",
                "country": "string",
                "asn": "string",
                "userAgent": "string",
                "referer": "string",
                "header": {
                  "property1": "string",
                  "property2": "string"
                },
                "cookie": {
                  "property1": "string",
                  "property2": "string"
                },
                "query": {
                  "property1": "string",
                  "property2": "string"
                },
                "extension": "string",
                "ja3": "string",
                "ja4": "string"
              },
              "any": true
            }
          ]
        },
        "redirects": [
          {
            "source": "string",
            "destination": "string",
            "status": 301,
            "force": true,
            "query": {
              "property1": "string",
              "property2": "string"
            }
          }
        ],
        "rewrites": [
          {
            "source": "string",
            "destination": "string",
            "cache": "shared",
            "force": true,
            "query": {
              "property1": "string",
              "property2": "string"
            },
            "notFound": true
          }
        ],
        "headers": [
          {
            "source": "string",
            "headers": [
              {
                "key": "string",
                "value": "string"
              }
            ]
          }
        ],
        "network": {
          "ingress": {
            "allowedCidrs": [
              "string"
            ]
          }
        },
        "users": {
          "enabled": true,
          "providers": {
            "google": {},
            "gravatar": {
              "enabled": true
            },
            "spacefast": {
              "enabled": true
            }
          }
        },
        "dataSources": {
          "property1": {
            "kind": "wordpress",
            "url": "http://example.com"
          },
          "property2": {
            "kind": "wordpress",
            "url": "http://example.com"
          }
        },
        "defaultDataSource": "string"
      },
      "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"
      },
      "headersRuleCount": -9007199254740991,
      "redirectsRuleCount": -9007199254740991,
      "proxyRouteCount": -9007199254740991,
      "crons": [
        {
          "key": "string",
          "path": "string",
          "schedule": "string"
        }
      ],
      "runtimeCodeDetected": true,
      "buildLog": "string",
      "diagnostics": [],
      "createdAt": "2019-08-24T14:15:22Z",
      "readyAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}
```
