Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Encrypt a key

Encrypts data with an ENCRYPT key.

Encrypts data with an ENCRYPT key.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/keys/key:encrypt
  • Scope keys:encrypt
  • Effect read — nothing is written.
  • Collection keys

#Request

FieldTypeWhat it is
namestringThe key to use. Required.
plaintextbytesThe plaintext, at most 64 KiB. Required. Never returned again.
additional_authenticated_databytesData bound to the ciphertext and required again to decrypt it.

#Response

FieldTypeWhat it is
ciphertextbytesThe ciphertext; it names the version that made it.
key_versionstringThe version that encrypted.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/keys/key:encrypt" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plaintext":"…"}'