API keys and usage
Your Developer API key ties all /api/dev/* requests to your account tier and quotas.
Generate a key
Section titled “Generate a key”- Sign in at anonpaste.com.
- Open Settings → Developer or anonpaste.com/developer/dashboard.
- Click Generate API Key.
Copy the key immediately and store it in a secret manager or environment variable. You may not be able to view the full key again after leaving the page.
Use the key
Section titled “Use the key”Pass the key on every request:
curl https://api.anonpaste.com/api/dev/paste-lite/list \ -H "x-api-key: YOUR_KEY"Or Authorization: Bearer YOUR_KEY. See Authentication.
Regenerate
Section titled “Regenerate”Generating a new key invalidates the previous key. Update all apps and CI secrets before revoking the old key in production.
View usage
Section titled “View usage”The developer dashboard shows monthly usage per endpoint family (pastes, files, paste-lite) against your tier limits.
- Free: paste-lite endpoints only (see Overview)
- Pro / Max: full pastes and files access with higher quotas
When usage exceeds the free monthly allowance, additional calls consume credits until depleted, then return 429.
Test interactively
Section titled “Test interactively”anonpaste.com/developer/test provides a browser UI to try endpoints when logged in (not a substitute for server-side integration).
Security checklist
Section titled “Security checklist”- Never commit keys to git or expose them in frontend bundles
- Use separate keys per environment (staging vs production) via separate accounts or rotation
- Revoke immediately if a key leaks
Related: SDK quick start · Errors