Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.revtain.com/llms.txt

Use this file to discover all available pages before exploring further.

Pass your API key via the X-API-KEY header on all requests:
X-API-KEY: rev_dTviCg52T8gLPCjrrW4KA0NKf_f5pQgk
Keep this secret. Your API key can trigger charges. Never expose it in client-side code, public repos, or logs.

Onboarding Credentials

During onboarding, you receive two credentials:
CredentialFormatPurpose
API Keyrev_xxxxxxxxxxxxxxxxxxxxxxxxAuthenticates all API requests
Webhook Signing Secretwhsec_xxxxxxxxxxxxxxxxxxxxxxxxVerifies inbound webhook signatures
Both are shown once during onboarding. Store them in environment variables — never in client-side code or repositories.

What You Provide

  • Your payment gateway key (Stripe secret key, Braintree credentials, etc.)
  • A webhook URL (HTTPS endpoint to receive recovery notifications)
  • Optionally, up to 2 backup gateways for multi-gateway cascade

Optional Configuration

FieldTypeDefaultDescription
billingCycleDayinteger (1-31)Friday payday windowDay of month customers are billed. Optimises retry timing.
timezonestringUTCIANA timezone (e.g., America/New_York).
dunningEnabledbooleanfalseEnable automated dunning webhook sequences on failure.
cardUpdateDomainstringCustom domain for branded card update page (e.g., pay.yourdomain.com).

Rate Limits

EndpointLimit
/api/recovery/execute60 requests / minute / API key
/api/recovery/tokenize10 requests / minute / API key
All othersNo specific limit (fair-use applies)
Rate-limited requests return 429 Too Many Requests with a retryAfter field.