Build with
AnonPaste

Store pastes, encrypted snippets, and files via a clean REST API.

Free tier available — no credit card required.

Three
API Groups

Quick pastes

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)

Rich 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

Quickstart

1. Get your API key

  1. Sign up or log into AnonPaste
  2. Go to your Developer Dashboard
  3. Click "Generate API Key"
  4. Send 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

Try it live in the API Tester

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();

Monthly
Request Limits

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

Need more? Upgrade to Pro or Max.

EndpointFreeProMax
Quick pastes
pasteLite.create1005k20k
pasteLite.get50010k100k
pasteLite.update502k10k
pasteLite.delete502k10k
Rich pastes (Pro+)
paste.create—50010k
paste.get—3k50k
paste.update—50010k
paste.delete105005k
File Storage (Pro+)
file.upload—1001k
file.get—5005k
file.delete—2002k

Ready to build?

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

AnonPaste is a user-generated content hosting service. The platform and its operators are not responsible for content posted by users.