---
title: "List teams with access to a secret incident"
method: GET
path: "/v1/secret-incidents/{incident_id}/teams"
tags: ["Internal Secret Incidents"]
---

# List teams with access to a secret incident

`GET /v1/secret-incidents/{incident_id}/teams`

List teams that have access to a secret incident.

## Path parameters

- `incident_id` integer, required

## Query parameters

- `cursor` string
- `per_page` integer
- `search` string — Search teams based on their name and/or description.
- `direct_access` boolean

## Response `200`

List teams

- object[]
  - `id` integer
  - `name` string
  - `description` string, nullable — team description.
  - `is_global` boolean
  - `gitguardian_url` string
  - `external_provider_id` string, nullable — ID of the external provider associated to the team.

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Permission denied
- `404` — Secret Incident not found
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
