Create a write-only secret
Encrypts the supplied value under the workspace data key. The value is accepted exactly once and is never returned; use PATCH to rotate it.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
name*SecretNameStable name of an active workspace secret. The referenced plaintext is never returned through the API.
^[A-Za-z_][A-Za-z0-9_]{1,63}$2 <= length <= 64description?|Optional operator note. Whitespace-only values normalize to null.
length <= 2000value*stringWrite-only UTF-8 value, at most 16384 encoded bytes. It is encrypted before storage and never echoed.
1 <= lengthSecret created. Only safe metadata is returned.
application/json- response
Safe write-only secret metadata. No plaintext, ciphertext, data-key ID, or wrapped key is ever included.
id*stringuuidname*SecretNameStable name of an active workspace secret. The referenced plaintext is never returned through the API.
^[A-Za-z_][A-Za-z0-9_]{1,63}$2 <= length <= 64description*string|nullfingerprint_suffix*|Up to the final four characters of the submitted value, for operator identification only.
length <= 4last_used_at*|date-timearchived_at*|date-timecreated_at*stringdate-timeupdated_at*stringdate-timecurl -X POST 'https://api.kejue.co/v1/secrets' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "value": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "fingerprint_suffix": "stri", "last_used_at": "2019-08-24T14:15:22Z", "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}