---
title: "Parse Terraform variables from Git repository"
method: POST
path: "/organization/{organizationId}/parseTerraformVariablesFromGitRepo"
tags: ["Organization Main Calls"]
---

# Parse Terraform variables from Git repository

`POST /organization/{organizationId}/parseTerraformVariablesFromGitRepo`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/organization/{organizationId}/parseTerraformVariablesFromGitRepo`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/organization/:organizationId/parseTerraformVariablesFromGitRepo/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `organizationId` string, uuid, required

## Request body

- TerraformVariableParsingRequest
  - `git_repository` ApplicationGitRepositoryRequest, required
    - `url` string, required: application git repository URL
    - `branch` string: Name of the branch to use. This is optional If not specified, then the branch used is the `main` or `master` one
    - `root_path` string: indicates the root path of the application.
    - `git_token_id` string, uuid, nullable: The git token id on Qovery side
    - `provider` 'BITBUCKET' | 'GITHUB' | 'GITLAB', required

## Response `200`

List of Terraform variable definitions

- object
  - `results` TerraformVariableDefinition[]
    - `key` string, required: The name of the variable
    - `sensitive` boolean, required: Whether the variable is marked as sensitive
    - `default` string, nullable: The default value of the variable, or null if no default is provided

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
