Documentation Index
Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt
Use this file to discover all available pages before exploring further.
Registry overview
The Prudra route registry stores a normalised snapshot of every payment-protected route in your API. Snapshots are captured automatically bypayMiddleware on every successful payment.
How registration works
The registry call is fire-and-forget — it never blocks your handler or affects response time. If the registry call fails, the payment still succeeds.What a route snapshot contains
Route normalisation
Routes are normalised before storage to remove query parameters and collapse dynamic segments:| Raw path | Normalised |
|---|---|
/api/generate?format=pdf | /api/generate |
/api/users/123/reports | /api/users/:id/reports |
/api/generate | /api/generate |
Upsert semantics
Snapshots use upsert on(orgId, route, method). Multiple payments to the same route update the existing registry entry rather than creating duplicates. The latest price and description always win.
Related
- Route snapshot — snapshot format details
- Query routes — discover routes from an agent
- Accept a payment — payMiddleware configuration

