SmartRetry uses API key authentication. Every request to the API must include your API key in theDocumentation Index
Fetch the complete documentation index at: https://www.smartretry.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
x-api-key HTTP header. Requests without a valid key are rejected with a 401 Unauthorized response.
Get your API key
SmartRetry provides your API key during onboarding. If you don’t have one yet, contact SmartRetry to get started. Each API key is scoped to your account. Treat it as a password - it grants full access to your SmartRetry integration.Include the key in every request
Pass your API key in thex-api-key header on every API request:
cURL
Failed authentication
If your API key is missing or invalid, the API returns a401 status with a JSON error body:
401 response
reason_code field to diagnose the issue. INVALID_API_KEY means the key was not recognized or has been revoked.
Security best practices
- Keep it server-side. Only use your API key in server-to-server requests. Your backend should proxy payment requests to SmartRetry - never call the API directly from a frontend.
- Use environment variables. Store your key in an environment variable (e.g.,
SMARTRETRY_API_KEY) rather than hardcoding it in your source code. - Rotate if compromised. If you suspect your key has been exposed, contact SmartRetry immediately to revoke it and issue a new one.
- Restrict access. Limit which systems and team members have access to your production API key. Use sandbox credentials for development and testing.