---
title: "Get Workflow File"
method: GET
path: "/workflowFile"
tags: ["Templates"]
---

# Get Workflow File

`GET /workflowFile`

Retrieve workflow file representation by blueprintId or VCS parameters (repositoryUrl, organizationId, path, etc.)

## Query parameters

- `blueprintId` string
- `revision` string
- `repository` string
- `organizationId` string
- `path` string
- `tokenId` string
- `githubInstallationId` string
- `sshKeys` string
- `bitbucketClientKey` string
- `vcsConnectionId` string
- `isGitHubEnterprise` boolean
- `isGitLabEnterprise` boolean
- `isBitbucketServer` boolean

## Response `200`

- BlueprintApiGetWorkflowFileResponse
  - `environments` WorkflowSubEnvironmentsMapping, required
  - `settings` object
    - `environmentRemovalStrategy` 'destroy' | 'detach'

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
