---
title: "List teams"
method: GET
path: "/v1/teams"
tags: ["Teams"]
---

# List teams

`GET /v1/teams`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/teams`
- Auth: HTTP bearer

Returns the teams your credential can act for, newest-first.

## Query parameters

- `limit` integer: Page size.
- `cursor` string: Opaque cursor from the previous page's `nextCursor`.

## 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
    - `id` string, required: The team id (the Better Auth team id in the main tenant).
    - `tenantId` string, required: The owning tenant id; `ten_main` for self-serve teams.
    - `name` string, required: The team display name.
    - `slug` string, required: URL-safe team slug, unique per tenant.
    - `role` 'owner' | 'admin' | 'member', required: Requesting member's role; member for non-session credentials.
    - `plan` 'free' | 'go' | 'plus' | 'gold' | 'enterprise' | 'internal', required: Resolved plan code from the active subscription.
    - `partner` object, nullable, required: Partner access for this team, or null when the team is not a partner.
      - `enabledAt` string, date-time, required: The instant this team became a partner.
    - `defaultDataLocation` string, required: Default placement region for new spaces; "auto" lets placement decide.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `pagination` object, required
    - `nextCursor` string, nullable, required: Opaque cursor for the next page; null when there are no more results.
    - `hasMore` boolean, required: Whether another page exists after this one.

## 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)
