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

## Changes

> 21 revisions in range; 1 could not be searched.

- **2026-07-14** `ed66ad97ff9a` — 1 info
  - added the optional property `items/interval` to the response with the `200` status
- **2026-07-07** `f944baf68a3e` — 1 warning
  - removed the optional property `items/interval` from the response with the `200` status

[Change history](https://skmtc.dev/portainer/apis/portainerce-api/changes/gitops/sources/get.md)

---

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