API reference
The tenant API: every operation your app can call with an API key.
The reference is made from the same OpenAPI file the gateway serves (api/openapi/v1.yaml, the /v1/* routes only), so it cannot drift from the API. Every page has a playground: paste a sandbox key (prk_test_...) and send the request.
Base URL
https://api.payrudder.comPick another server in the playground for the staging environment or a local stack (http://localhost:42800).
Authentication
Send your key as a bearer token on every request:
curl https://api.payrudder.com/v1/meters -H "Authorization: Bearer $PAYRUDDER_API_KEY"A key acts on one environment (sandbox or live) and has a role that limits what it may do. See Authentication.
Conventions
Every error carries a stable error.key. Translate the key, not the message. The full list is on Errors.
Usage events carry an idempotency_key each. Granting and consuming credits, creating a payment link and creating an upload session take an Idempotency-Key header. Other creates answer 409 on a natural unique key (a customer's external_id, a meter or plan code). A 429 carries Retry-After. See Idempotency.
Usage quantities are exact decimals sent as strings. Amounts are integers in the currency's minor unit (amount_minor, total_minor), most of them sent as strings so 64-bit values survive JSON. Never parse either into floating point numbers.
The version is in the path (/v1). What may change inside a version, and what never does: Versioning.
Machine-readable
The OpenAPI document of this reference is published at /api-reference/openapi.json. Generate a client from it, or load it into your API tool.