Skip to main content

Overview

DocketLayer’s callback system signs outbound webhook payloads with an HMAC-SHA256 key tied to your wallet address. The wallet keys endpoints let you retrieve your current key state and rotate to a new key when needed. Both endpoints require x402 payment and identify you by your Solana wallet address. Base URL: https://api.docketlayer.ai Price: $0.99 per call

GET /v2/wallet/keys

Returns your current signing key ID and, if a rotation has occurred, the previous key ID.

Request

No parameters required.

Response

Response fields

First call — If you have never called this endpoint before, DocketLayer automatically provisions a new key and returns it. The secret itself is only visible at rotation time (see POST below).

POST /v2/wallet/keys

Rotates your signing key. Generates a new key and returns the secret. The previous key remains valid for 30 minutes to allow in-flight deliveries to complete.

Request

No body required.

Response

Response fields

new_key_secret is only returned once, at rotation time. DocketLayer does not store it in retrievable form. Store it immediately in your secrets manager.

Using the signing key

DocketLayer includes an X-DocketLayer-Signature header on all callback deliveries, formatted as:
Verify it server-side: