---
title: "Export catalogs"
method: POST
path: "/catalogs/export"
---

# Export catalogs

`POST /catalogs/export`

Lists all the catalogs in your current account and re-encrypt them with the public key you supplied.

## Request body

- ExportCatalogsParams
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `all` boolean, required — Whether to export catalogs across all environments, without applying default-environment inheritance or deduplication.
  - `environment` string, required — Environment whose catalogs to export when all is false. When it has no same-named catalog, a catalog from default is selected instead.
  - `page` integer, required — The page number to fetch.
  - `page_size` integer, required — The number of records to fetch on each page.
  - `public_key` string, required — The PEM-encoded public key you want to use to encrypt sensitive catalog properties.

## Response `200`

OK

- ExportCatalogsResponse
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `catalogs` ExportedCatalog[], required
    - `CreatedAt` string, date-time, required
    - `environment` string, required — Environment containing the catalog definition.
    - `name` string, required
    - `properties` ExportedCatalogProperty[], required
      - `encrypted_value` string, required
      - `environment_variable` string — The environment variable name this property is injected as at runtime.
      - `name` string, required
      - `preview` string, required
    - `slug` string — This property is deprecated. Use name instead.
    - `type` string, required
  - `pages` Pagination, required
    - `num_pages` integer, required
    - `page` integer, required
    - `page_size` integer, required
    - `total` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/tower/apis/tower-api.md) · [All operations](https://skmtc.net/tower/apis/tower-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tower/tower-api/revisions/0e42b0fb26d9/schema)
