---
title: "List all GitOps sources"
method: GET
path: "/gitops/sources"
tags: ["gitops"]
---

# List all GitOps sources

`GET /gitops/sources`

Returns a deduplicated list of git repositories used across all GitOps workflows.
**Access policy**: authenticated

## Query parameters

- `search` string
- `sort` string
- `order` string
- `start` integer
- `limit` integer
- `status` string
- `type` 'git' | 'helm' | 'oci'

## Response `200`

OK

- SourcesSource[]
  - `environments` integer
  - `error` string
  - `id` integer, required
  - `interval` string
  - `lastSync` integer
  - `name` string, required
  - `status` 'healthy' | 'syncing' | 'error' | 'paused' | 'unknown', required
  - `type` 'git' | 'helm' | 'oci', required
  - `url` string, required
  - `usedBy` integer

## Other responses

- `400` — Invalid status parameter
- `403` — Access denied
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
