Webhook public keys

Every request goes to https://api.lemak.cash. About the reference.

List webhook public keys

GET /v1/webhook_public_keys

Returns the Ed25519 public keys that sign webhook deliveries. Verify the v2 signature in the X-Webhook-Signature header with the key whose id equals v2_kid in the same header. The header has the form t=<unix>,v1=<hex>,v2=<base64>,v1_kid=<n>,v2_kid=<key_id>.

Authentication

Bearer key. Your secret API key, which starts with sk_test_ or sk_live_. Send it as Authorization: Bearer <key>. A test key works as soon as your account exists. A production key returns 403 live_not_enabled until your account is activated.

Parameters

NameInTypeDescription
Api-Version optionalheaderstringThe API version for this request, as a date in YYYY-MM-DD format. When omitted, your account's version applies, which is set to the latest version on your first request. An unknown version returns 400 invalid_api_version. Pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

Responses

200

A list of public keys.

application/json

WebhookPublicKeyList

FieldTypeDescription
object requiredlist
data requiredarray of WebhookPublicKey
Fields of data
FieldTypeDescription
id requiredstringThe ID of the key. The v2_kid value in the X-Webhook-Signature header names it. Pattern ^key_[A-Z2-7]+$.
object requiredwebhook_public_key
algorithm requireded25519
public_key requiredstringThe raw 32-byte public key, base64-encoded.
has_more requiredbooleanWhether more objects exist after this page.

Errors

Every error answers with the error object.

StatusWhen
OtherAn error. The status tells you the kind: 400 invalid request, 401 invalid API key, 402 payment could not be placed, 403 forbidden, 404 not found, 409 conflict, 413 body over 64 KiB, 422 idempotency key reused, 429 too many requests, 5xx server error. A test mode key takes at most 5 requests a second.

Example

curl https://api.lemak.cash/v1/webhook_public_keys \
  -H "Authorization: Bearer sk_test_..." \
  -H "Api-Version: 2026-12-01"