Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Mac verify on a key

Verifies a MAC made by a MAC key, in constant time.

Verifies a MAC made by a MAC key, in constant time.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/keys/key:macVerify
  • Scope keys:verify
  • 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. Required.
macbytesThe MAC to check. Required.

#Response

FieldTypeWhat it is
validboolThe MAC is valid.

#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:macVerify" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data":"…","mac":"…"}'