Skip to content

API keys and usage

Your Developer API key ties all /api/dev/* requests to your account tier and quotas.

  1. Sign in at anonpaste.com.
  2. Open Settings → Developer or anonpaste.com/developer/dashboard.
  3. 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.

Pass the key on every request:

Terminal window
curl https://api.anonpaste.com/api/dev/paste-lite/list \
-H "x-api-key: YOUR_KEY"

Or Authorization: Bearer YOUR_KEY. See Authentication.

Generating a new key invalidates the previous key. Update all apps and CI secrets before revoking the old key in production.

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.

anonpaste.com/developer/test provides a browser UI to try endpoints when logged in (not a substitute for server-side integration).

  • 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