---
title: "Get a GitOps source by ID"
method: GET
path: "/gitops/sources/{id}"
tags: ["gitops"]
---

# Get a GitOps source by ID

`GET /gitops/sources/{id}`

Returns a single GitOps source with its connection settings and access rules.
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Response `200`

OK

- SourcesSourceDetail
  - `access` SourcesSourceAccess
    - `public` boolean
    - `teams` integer[]
    - `users` integer[]
  - `connection` SourcesConnectionInfo, required
    - `authentication` SourcesGitAuthInfo
      - `username` string
    - `tlsSkipVerify` boolean
  - `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

## Other responses

- `400` — Invalid request
- `403` — Access denied
- `404` — Source not found
- `500` — Server error

## Changes

- **2026-07-21** `e2c1fdb8d076` — 4 warning
  - removed the optional property `autoUpdate` from the response with the `200` status
  - removed the optional property `environments` from the response with the `200` status
  - removed the optional property `usedBy` from the response with the `200` status
  - removed the optional property `workflows` from the response with the `200` status
- **2026-07-14** `ed66ad97ff9a` — 1 info
  - added the optional property `interval` to the response with the `200` status
- **2026-07-09** `99d4ab22fc1e` — 1 info
  - added the optional property `workflows/items/sourceId` to the response with the `200` status
- **2026-07-07** `f944baf68a3e` — 2 warning
  - removed the optional property `interval` from the response with the `200` status
  - removed the optional property `workflows/items/sourceId` from the response with the `200` status

[Change history](https://skmtc.dev/portainer/apis/portainerce-api/changes/gitops/sources/:id/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)
