---
title: "Get team settings"
method: GET
path: "/v1/teams/{teamId}/settings"
tags: ["Teams"]
---

# Get team settings

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

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/teams/{teamId}/settings`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.spacefast.com/v1/auth/oauth2/authorize`, token URL `https://api.spacefast.com/v1/auth/oauth2/token`; client credentials, token URL `https://api.spacefast.com/v1/auth/oauth2/token`, scopes: `teams:read`)

Returns the team's settings for Spaces and shared connectors.

## Path parameters

- `teamId` string, required

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `connectorsServing` object, required
      - `adminOnly` boolean, required
      - `allowlist` string[], nullable, required
    - `githubPreviewCommentsEnabled` boolean: Controls GitHub preview comments for Spaces that use the team setting.
    - `requireTwoFactor` boolean, required: Whether every team member must have two-factor authentication on.
    - `teamId` string, required: The team id the settings belong to.
    - `wpCloudSettingsDefaults` object: WP Cloud defaults inherited by the team's Spaces.
      - `default_php_conns` string, nullable
      - `burst_php_conns` string, nullable
      - `php_memory_limit` string, nullable
      - `php_fs_permissions` string, nullable
      - `static_file_404` string, nullable
      - `canonicalize_aliases` string, nullable
      - `space_quota` string, nullable
    - `defaultDataLocation` string, required: Default placement region for new spaces; "auto" lets placement decide.
    - `regionOptions` object[], required: Placement regions currently available for new spaces.
      - `id` string, required
      - `label` string, required
    - `infraCapabilities` object, required: Live capabilities for the team's infra provider account.
      - `datacenters` object[], required
        - `id` string, required
        - `label` string, required
      - `phpVersion` '8.5', required

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
