latestOpenAPI 3.1.02026-08-20118232229.3 KB

0e42b0fb26d9

Export secrets

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

post/secrets/export

Request body

$schemastring uri

A URL to the JSON Schema for this object.

allboolean required

Whether to fetch all secrets or only the ones that are not marked as deleted.

environmentstring required

The environment to filter by.

pageinteger required

The page number to fetch.

page_sizeinteger required

The number of records to fetch on each page.

public_keystring required

The PEM-encoded public key you want to use to encrypt sensitive secret values.

Example request

{
  "$schema": "https://api.tower.dev/v1/schemas/ExportSecretsParams.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://api.tower.dev/v1/schemas/ExportSecretsResponse.json"
}