# GET /v1/teams/{}/incidents/secrets is deprecated

GitGuardian API deprecated GET /v1/teams/{id}/incidents/secrets without giving a shutdown date yet.

GitGuardian API deprecated the GET /v1/teams/{id}/incidents/secrets endpoint without a shutdown date. This change affects calls to list secret incidents for a team, which do not return occurrences in this route. Following its eventual removal, requests to this endpoint will fail.

## What to use instead

Call GET /v1/teams/{team_id}/secret-incidents instead.

- API: GitGuardian API (api.gitguardian.com)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `GET /v1/teams/{id}/incidents/secrets`
- Source: [Announcement](https://api.gitguardian.com/docs)
- Verified: November 6, 2026, against GitGuardian API's own pages
- Page: https://www.okapi.bot/providers/gitguardian-api/breaking-changes/get-v1-teams-incidents-secrets-is-deprecated/

## GitGuardian API's words

> List secret incidents of a particular team. Occurrences are not returned in this route. DEPRECATED: THis endpoint has been replaced by /v1/teams/{team_id}/secret-incidents

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
