PUT
Use a customer-managed key (Enterprise)

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
provider
enum<string>
required
Available options:
aws,
gcp
key_ref
string
required

An AWS KMS key ARN or alias, or a Cloud KMS key resource name.

Maximum string length: 512

Response

Adopted.

kms_provider
enum<string>
required
Available options:
local,
aws,
gcp,
vault
customer_key
object | null
required
data_key_version
integer
required

0 until the first secret is stored.

customer_providers
enum<string>[]
required
Available options:
aws,
gcp
entitled
boolean
required