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

---

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