Documentation Index
Fetch the complete documentation index at: https://docs.gx402.org/llms.txt
Use this file to discover all available pages before exploring further.
API Key Authentication
All API requests to the Gx402 SDK require authentication using an API key. This key identifies your application and grants access to the Gx402 services. To authenticate your requests, include your API key in theX-Gx402-API-Key header:
HMAC Signature Verification for Webhooks
For enhanced security, Gx402 webhooks include an HMAC-SHA256 signature in the request header. This allows you to verify the authenticity and integrity of webhook payloads received by your application. To verify a webhook signature:- Retrieve the
signaturefrom theX-Gx402-Signatureheader of the incoming webhook request. - Reconstruct the signed payload by concatenating the timestamp (from
X-Gx402-Timestampheader) and the raw request body. - Compute the HMAC-SHA256 hash of the reconstructed payload using your webhook secret as the key.
- Compare your computed hash with the
signaturereceived in the header. If they match, the webhook is authentic.