Developer API

Build with
AnonPaste

Store pastes, encrypted snippets, and files via a clean REST API.
Free tier available — no credit card required.

Three API Groups

📝

Paste Lite

Free

Lightweight key-value paste storage. Create, retrieve, and delete short-lived snippets. Available on all tiers. No auth beyond your API key.

  • Create & retrieve
  • Optional password protection
  • Burn after read
  • Search your pastes (free)
🗒️

Full Pastes

Pro+

Full AnonPaste experience via API. Rich text, hashtags, expiry controls, and full CRUD. Pastes appear on your user account.

  • Full paste management
  • Hashtags & rich metadata
  • Never-expire option
  • Linked to your account
📁

File Storage

Pro+

Upload and serve files via the AnonPaste file API. Server-side or presigned direct-upload. Up to 50MB per file.

  • Image, PDF, text, JSON…
  • Presigned PUT uploads
  • Instant CDN delivery
  • 50MB max file size

Monthly Request Limits

Requests beyond the limit spend credits. List/Search is always free.

EndpointFreeProMax
Paste Lite
pasteLite.create1005k20k
pasteLite.get50010k100k
pasteLite.delete502k10k
Full Pastes (Pro+)
paste.create50010k
paste.get3k50k
paste.update50010k
paste.delete105005k
File Storage (Pro+)
file.upload1001k
file.get5005k
file.delete2002k

Need more? Upgrade to Pro or Max.

Quickstart

1. Get your API key

  1. 1Sign up or log into AnonPaste
  2. 2Go to your Developer Dashboard
  3. 3Click "Generate API Key"
  4. 4Send key as x-api-key header

Authentication

Send your key in either header:

# Option A: x-api-key header
x-api-key: YOUR_API_KEY

# Option B: Authorization header
Authorization: Bearer YOUR_API_KEY

Base URL: https://api.anonpaste.com

Code Examples

cURL

# Create a paste
curl -X POST https://api.anonpaste.com/api/dev/paste-lite/create \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"My snippet","data":"Hello from the API!"}'

# Response
{ "ref": "abc123:def", "expire": null }

JavaScript / TypeScript

const res = await fetch(
  'https://api.anonpaste.com/api/dev/paste-lite/create',
  {
    method: 'POST',
    headers: {
      'x-api-key': 'YOUR_API_KEY',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ name: 'My snippet', data: 'Hello!' }),
  }
);
const { ref } = await res.json();

Ready to build?

Free tier, no credit card required. Upgrade when you need higher limits.

Initializing...

Preparing the app. This may take a moment before app is ready.

AnonPaste est un service d'hébergement de contenu généré par les utilisateurs. La plateforme et ses opérateurs ne sont pas responsables du contenu publié par les utilisateurs.