API documentation

Everything you submit here is recorded and kept. We store every request and response, including the full text of every paste, your IP address, approximate location, and network/browser fingerprints. By using freepastebin.com, you understand and agree to this. Data notice →

Free pastebin for text and code. Create a paste, share a link, and download raw text. No account needed.

Base URL: https://freepastebin.com. Public access with no accounts, API keys or application rate limits. All APIs support cross-origin requests. Use the OpenAPI specification for machine-readable request and response schemas.

Send POST bodies as JSON or URL-encoded form data unless an endpoint specifies a raw body. Errors return JSON with error.code and error.message. See the usage notes for request bounds and usage notes.

GET /api/pastes

Create a public paste.

content query · required
UTF-8 paste content, maximum 1 MiB.
title query
Optional title.
language query
Language label. Default: "text".

POST /api/pastes

Create a public paste.

content body · required
UTF-8 paste content, maximum 1 MiB.
title body
Optional title.
language body
Language label. Default: "text".

GET /api/pastes/{id}

Retrieve paste content and metadata.

id path · required
Paste ID.

GET /raw/{id}

Retrieve raw UTF-8 text. Supports HEAD and If-None-Match.

id path · required
Paste ID.

GET /{id}

View escaped paste HTML.

id path · required
Paste ID.

GET /docs

Server-rendered HTML API reference.

GET /robots.txt

Crawler access rules and sitemap location.

GET /sitemap.xml

Public documentation sitemap.

GET /health

Worker liveness (does not probe external dependencies).

GET /llms.txt

Plain-text agent usage guide.