---
title: "List teams in an organization"
method: GET
path: "/organizations/{organization}/teams"
tags: ["Organization teams"]
---

# List teams in an organization

`GET /organizations/{organization}/teams`

### Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:

**Service Token Accesses**
 `read_organization`

**OAuth Scopes**

 | Resource | Scopes |
| :------- | :---------- |
| Organization | `read_organization` |

## Path parameters

- `organization` string, required

## Query parameters

- `q` string

## Response `200`

Returns teams in the organization

- object
  - `current_page` integer, required — The current page number
  - `next_page` integer, required — The next page number
  - `next_page_url` string, required — The next page of results
  - `prev_page` integer, required — The previous page number
  - `prev_page_url` string, required — The previous page of results
  - `data` object[], required
    - `id` string, required — The ID of the team
    - `display_name` string, required — The display name of the team
    - `creator` object, required
      - `id` string, required — The ID of the actor
      - `display_name` string, required — The name of the actor
      - `avatar_url` string, required — The URL of the actor's avatar
    - `members` object[], required
      - `id` string, required — The ID of the user
      - `display_name` string, required — The display name of the user
      - `name` string, required — The name of the user
      - `email` string, required — The email of the user
      - `avatar_url` string, required — The URL source of the user's avatar
      - `created_at` string, required — When the user was created
      - `updated_at` string, required — When the user was last updated
      - `two_factor_auth_configured` boolean, required — Whether or not the user has configured two factor authentication
      - `default_organization` object, required
        - `id` string, required — The ID for the resource
        - `name` string, required — The name for the resource
        - `created_at` string, required — When the resource was created
        - `updated_at` string, required — When the resource was last updated
        - `deleted_at` string, required — When the resource was deleted, if deleted
      - `sso` boolean, required — Whether or not the user is managed by SSO
      - `managed` boolean, required — Whether or not the user is managed by an authentication provider
      - `directory_managed` boolean, required — Whether or not the user is managed by a SSO directory
      - `email_verified` boolean, required — Whether or not the user is verified by email
    - `databases` object[], required
      - `id` string, required — The ID of the database
      - `name` string, required — The name of the database
      - `url` string, required — The URL to the database API endpoint
      - `branches_url` string, required — The URL to retrieve this database's branches via the API
    - `name` string, required — The name of the team
    - `slug` string, required — The slug of the team
    - `created_at` string, required — When the team was created
    - `updated_at` string, required — When the team was last updated
    - `description` string, required — The description of the team
    - `managed` boolean, required — Whether the team is managed through SSO/directory services

## Other responses

- `400` — Bad Request - Invalid operation or parameters
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity - Validation errors or SSO-managed teams
- `500` — Internal Server Error

---

[API](https://skmtc.dev/planetscale/apis/planetscale-api.md) · [All operations](https://skmtc.dev/planetscale/apis/planetscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/planetscale/planetscale-api/revisions/477c6ebdabdf/schema)
