Webhooks
Get Public Key
Retrieve the ED25519 public key used to verify webhook payload signatures
GET
Documentation Index
Fetch the complete documentation index at: https://docs-openpay.nipuntheekshana.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Response
The ED25519 public key in base64 encoding. Use this key to verify the
X-Signature header on incoming webhook requests.The signature algorithm used. Always
ED25519.Signature Verification
Each webhook request includes anX-Signature header containing an ED25519 signature of the raw request body. To verify:
- Retrieve the public key from this endpoint (cache it, as it rarely changes).
- Read the raw request body bytes from the incoming webhook.
- Verify the
X-Signatureheader value against the body using the ED25519 public key.
Node.js Example