---
title: "List the workflows using a GitOps source"
method: GET
path: "/gitops/sources/{id}/workflows"
tags: ["gitops"]
---

# List the workflows using a GitOps source

`GET /gitops/sources/{id}/workflows`

Returns the workflows (stacks or edge stacks) currently deployed from this source.
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Response `200`

OK

- SourcesWorkflow[]
  - `creationDate` integer
  - `gitConfig` GittypesRepoConfig
    - `Authentication` GittypesGitAuthentication
      - `AuthorizationType` integer
      - `GitCredentialID` integer
      - `Password` string
      - `Provider` integer
      - `Username` string
    - `ConfigFilePath` string — ConfigFilePath is the path to the config file within the repository. NOTE: For stacks, this mirrors Stack.EntryPoint and the two are kept in sync by stackUpdateGit.
    - `ConfigHash` string — Repository hash
    - `ReferenceName` string — The reference name
    - `TLSSkipVerify` boolean — TLSSkipVerify skips SSL verification when cloning the Git repository
    - `URL` string — The repo url
  - `id` integer, required
  - `lastSyncDate` integer
  - `name` string, required
  - `platform` 'dockerStandalone' | 'dockerSwarm' | 'kubernetes', required
  - `sourceId` integer
  - `status` WorkflowsWorkflowStatusObject, required
    - `artifact` WorkflowsWorkflowPhaseStatus
      - `error` string
      - `status` 'healthy' | 'syncing' | 'error' | 'paused' | 'unknown'
    - `source` WorkflowsWorkflowPhaseStatus
      - `error` string
      - `status` 'healthy' | 'syncing' | 'error' | 'paused' | 'unknown'
    - `target` WorkflowsWorkflowPhaseStatus
      - `error` string
      - `status` 'healthy' | 'syncing' | 'error' | 'paused' | 'unknown'
  - `target` WorkflowsTarget, required
    - `edgeGroupIds` integer[]
    - `endpointId` integer
    - `groupStatus` object
    - `namespace` string
    - `resolvedEndpointIds` integer[]
  - `type` 'stack' | 'edgeStack', 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)
