Galon Cloud
Galon API v1

/projects/{project_id}/keys/{key_id}/copy

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

POST /projects/{project_id}/keys/{key_id}/copy

Copy the secret of a sealed key after re-authentication (never cached, logged)

Console session only (signed-in console).

Parameters

NameInTypeDescription
project_idpathstring · required
key_idpathstring · required

Request body

application/json

FieldTypeDescription
passwordstring · required
totp_codestring

Responses

StatusDescriptionBody
200key (the secret, Cache-Control no-store)
403invalid_credentials, two_factor_required, invalid_totp
409key_revoked, key_not_copyable
429too_many_attempts (Retry-After)
503key_vault_unavailable, key_vault_mismatch

Examples

curl

curl -X POST "$GALON_API_BASE/projects/<project_id>/keys/<key_id>/copy" \
  -H "Authorization: Bearer $GALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"password": "string"}'