---
title: "Export all SSH hosts"
method: GET
path: "/host/db/hosts/export"
tags: ["SSH"]
---

# Export all SSH hosts

`GET /host/db/hosts/export`

Exports all SSH hosts for the current user. By default credentials are decrypted and embedded. With `share=1`, secrets are omitted and credential-authenticated hosts instead reference a scrubbed `credentials` array by alias, suitable for handing off to another user.

## Query parameters

- `share` string

## Response `200`

All exported SSH hosts.

## Other responses

- `400` — Invalid userId.
- `500` — Failed to export SSH hosts.

---

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