---
title: "Env Template Generate (x402)"
method: GET
path: "/x402/v2/env-template-generate"
tags: ["x402"]
---

# Env Template Generate (x402)

`GET /x402/v2/env-template-generate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/env-template-generate`
- Auth: none required

Scan source code for environment variable references (process.env, os.environ, etc.) and generate a .env template with descriptions and example values.

## Query parameters

- `code` string: Source code to scan
- `project_description` string

## Response `200`

Success

- object
  - `variables` unknown[]
    - unknown
  - `env_template` string
  - `total_variables` integer

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
