Skip to content

Developer API Overview

The AnonPaste Developer API lets you create, read, update, and delete pastes, lightweight paste-lites, and files — all programmatically with an API key.

  • Backup tools – automatically save text or files to AnonPaste
  • Bot integrations – post log output, alerts, or reports as pastes
  • Ephemeral data stores – use PasteLite as a lightweight key/value store
  • Secure file sharing – upload files with client-side encryption or burn-after-download
ResourceDescription
PastesFull-featured text pastes with syntax highlighting, expiry, burn-after-view, and client-side encryption
PasteLiteLightweight key/value store for small JSON/text payloads
FilesBinary file storage with tagging, expiry, and burn-after-download
https://api.anonpaste.com

All Developer API endpoints are prefixed with /api/dev/.

  1. Log in to AnonPaste
  2. Go to Settings → Developer
  3. Click Generate API Key

Note: API keys are tied to your account tier. Free tier users can only access PasteLite endpoints. Upgrade to Pro or Max for full paste and file access.

EndpointFreeProMax
pastes.create0/mo500/mo10,000/mo
pastes.get0/mo3,000/mo50,000/mo
pastes.update0/mo500/mo10,000/mo
pastes.delete10/mo500/mo5,000/mo
files.upload0/mo100/mo1,000/mo
files.get0/mo500/mo5,000/mo
files.delete0/mo200/mo2,000/mo
pasteLite.create100/mo5,000/mo20,000/mo
pasteLite.get500/mo10,000/mo100,000/mo
pasteLite.delete50/mo2,000/mo10,000/mo

Requests over the monthly free quota are billed per request against your credit balance. If credits run out, further over-quota requests return 429 Too Many Requests until credits are added or the monthly quota resets.

An endpoint that is unavailable on the current account tier can also return 429 with a plan-upgrade reason. See Rate limits and Errors for response details.

You can use the API with plain HTTP requests or with the official SDK:

  • TypeScript/JavaScript SDK (anonpaste-sdk) — recommended for most use cases
  • Raw HTTP — use any language with curl, fetch, requests, etc.

This documentation covers both approaches side by side.

Features you use in the browser while logged in — short links, themes, notifications, paste creation from the homepage — use separate session APIs. They are documented in the user help sections (for example Short links), not here. Integrations should only target /api/dev/* unless AnonPaste provides a dedicated public API for that feature.