Skip to content
Console
On this page

Sign a key

Signs data or a digest with a SIGN key.

Signs data or a digest with a SIGN key. Every use is audited.

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

Request

FieldTypeWhat it is
namestringThe key to use. Required.
key_versionstringThe version to use; default the primary version.
databytesThe message to sign, at most 64 KiB. Set exactly one of data and digest.
digestbytesThe digest of the message under the algorithm's hash.

Response

FieldTypeWhat it is
signaturebytesThe signature.
key_versionstringThe version that signed.

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:sign" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'