---
title: "Export hosting account backup (JSON)"
method: POST
path: "/api/hosting-accounts/{id}/export"
tags: ["Admin - Hosting Account Export"]
---

# Export hosting account backup (JSON)

`POST /api/hosting-accounts/{id}/export`

Creates a full backup of the hosting account (plan, domains, databases, mail, DNS, etc.) as JSON and returns a temporary download URL for the JSON file.

## Path parameters

- `id` integer, required

## Request body

- object
  - `exclude_sensitive` boolean — Exclude or mask sensitive data (e.g. passwords)
  - `export_reason` string — Reason for export (audit)
  - `export_method` string — Export method label (e.g. manual, api)

## Response `201`

Backup created; use download_url to fetch the JSON file

- object
  - `message` string
  - `download_url` string, uri — Temporary URL to download the backup JSON (valid 5 minutes)
  - `expires_in` integer — Seconds until download URL expires

## Other responses

- `404` — Not found
- `422` — Export failed

---

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