---
raw: true
search:
  tags:
    - Teams
    - GET
seo:
  description: >-
    Returns the team's live spaces, most recently updated first. Reference for
    the GET /v1/teams/{teamId}/spaces endpoint in the Spacefast Partner API.
sidebar:
  label: List a team's spaces
  badge: GET
title: List a team's spaces
type: openapi-operation
---
Returns the team's live spaces, most recently updated first.

`GET /v1/teams/{teamId}/spaces`

**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",
      "tenantId": "string",
      "mode": "live",
      "providerRef": "string",
      "providerClientId": "string",
      "teamId": "string",
      "teamSlug": "string",
      "principal": {
        "tenantId": "string",
        "principalType": "team",
        "principalId": "string"
      },
      "infrastructure": {
        "region": "string",
        "runtimeInstanceId": "string",
        "managementHostname": "string",
        "provisioningState": "provisioning"
      },
      "anonymous": true,
      "slug": "string",
      "title": "string",
      "status": "provisioning",
      "disabled": {
        "at": "2019-08-24T14:15:22Z",
        "reasonCode": "anonymous_expired"
      },
      "claimState": {
        "expiresAt": "2019-08-24T14:15:22Z",
        "claimedAt": "2019-08-24T14:15:22Z",
        "purgeAfter": "2019-08-24T14:15:22Z"
      },
      "expiryExtension": {
        "extendedTo": "2019-08-24T14:15:22Z"
      },
      "defaultHostname": "string",
      "publicName": "string",
      "liveUrl": "string",
      "thumbnail": {
        "kind": "screenshot",
        "provider": "wpcom-mshots",
        "url": "http://example.com",
        "sourceUrl": "http://example.com"
      },
      "dataLocation": "string",
      "region": "string",
      "burstable": true,
      "archivedBytes": 0,
      "hasRuntime": true,
      "channels": {
        "property1": {
          "versionId": "string",
          "updatedAt": "2019-08-24T14:15:22Z"
        },
        "property2": {
          "versionId": "string",
          "updatedAt": "2019-08-24T14:15:22Z"
        }
      },
      "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": {
              "mode": "disabled"
            },
            "gravatar": {
              "enabled": true
            },
            "spacefast": {
              "enabled": true
            }
          }
        },
        "dataSources": {
          "property1": {
            "kind": "wordpress",
            "url": "http://example.com"
          },
          "property2": {
            "kind": "wordpress",
            "url": "http://example.com"
          }
        },
        "defaultDataSource": "string"
      },
      "grandfatherBrandingRemoval": true,
      "settingsDigest": "string",
      "noindex": true,
      "teamAccessPolicy": {
        "privateSpacesOnly": true,
        "noindex": true
      },
      "pinnedAt": "2019-08-24T14:15:22Z",
      "labelIds": [
        "string"
      ],
      "viewerCanDelete": true,
      "viewerCanTransfer": true,
      "git": {
        "managedBy": "spacefast",
        "remoteUrl": "string",
        "repository": "string",
        "defaultBranch": "string",
        "provisioned": true
      },
      "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"
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}
```
