---
title: "Bulk import secrets from dotenv text"
method: POST
path: "/api/v1/hosting/apps/{app_id}/secrets/bulk"
tags: ["hosting"]
---

# Bulk import secrets from dotenv text

`POST /api/v1/hosting/apps/{app_id}/secrets/bulk`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/hosting/apps/{app_id}/secrets/bulk`
- Auth: HTTP bearer

## Path parameters

- `app_id` string, required

## Request body

- object
  - `dotenv` string, required
  - `dry_run` boolean
  - `prune` boolean

## Response `200`

Bulk import result summary

- object

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable entity
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
