Callback Receiver Example (FastAPI, v3)
The example below is a minimal sample that receives and verifies the v3 callback sent byqtg.
Runnable example files:
- Receiver server:
examples/callback_receiver_fastapi.py - Local test sender:
examples/send_signed_callback.py
Delivered Headers (v3)
X-QTG-Callback-TimestampX-QTG-Callback-NonceX-QTG-Callback-Signature-Version: v3X-QTG-Callback-Signature
Signature Rule (v3)
Canonical string:Local Run Quickstart
- Run the receiver server
- Send a signed callback
Important Notes
- This example shows a minimal nonce ledger.
- If the receiver runs in multiple instances in production, you must use nonce recording based on a shared DB/store + unique constraint.