---
title: "Download TF module"
method: GET
path: "/modules/v1/{organizationId}/{moduleName}/{providerName}/{version}/download"
tags: ["Templates"]
---

# Download TF module

`GET /modules/v1/{organizationId}/{moduleName}/{providerName}/{version}/download`

Gets the URL of the source code for a Tofu/Terraform module.
This is an API used by Tofu/Terraform to download the module when running `tofu init`.
The URL could be found in the response header under X-Terraform-Get, and its format is "git::REPOSITORY_URL[//PATH_TO_FOLDER][?ref=GIT_REF]"

You could use this URL to clone the repository and checkout the specific git ref, and find the source in the specified folder

## Path parameters

- `organizationId` string, required
- `moduleName` string, required
- `providerName` string, required
- `version` string, required

## Response `200`

- unknown

---

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