API Requests
Base URL
https://paste.example.com/api/v1Rate Limits
POST /pastes → 20 req/min per IP
GET /pastes → 10 req/min per IP
Headers in every response:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
Authentication
No authentication required. All endpoints are public (with rate limits).
Endpoints
Create Paste
POST /pastes
Fields:
content
string
✅
Paste text (1MB)
title
string
❌
Max 100 chars
language
string
❌
Syntax highlighting
visibility
string
❌
public, unlisted, private
burnAfterRead
boolean
❌
Delete after first view
expiration
string
❌
never, 1hour, 1day, 1week, 1month
password
string
❌
Protect paste
maxViews
number
❌
1–1000 views
Example:
curl -X POST https://paste.example.com/api/v1/pastes \
-H "Content-Type: application/json" \
-d '{
"title": "Hello World",
"content": "console.log(\"Hello, World!\");",
"language": "javascript",
"visibility": "public",
"expiration": "1week"
}'Error Codes
INVALID_JSON
Bad JSON body
EMPTY_BODY
Request body missing
VALIDATION_ERROR
Missing/invalid fields
CONTENT_TOO_LARGE
Exceeds 1MB
TITLE_TOO_LONG
Title >100 chars
INVALID_EXPIRATION
Wrong expiration value
RATE_LIMIT_EXCEEDED
Too many requests
MISSING_ID
Paste ID required
PASTE_NOT_FOUND
Paste does not exist
PASTE_EXPIRED
Paste expired
PASTE_BURNED
Burn-after-read triggered
MAX_VIEWS_REACHED
View limit hit
DATABASE_ERROR
DB issue
Examples
Simple text
Code snippet
Private + password
Burn after read
Limited views
Supported Languages
AegisPaste supports 90+ languages and formats.
Web:
javascript,typescript,jsx,tsx,html,css,scssGeneral:
python,java,csharp,cpp,c,go,rust,php,ruby,swiftFunctional:
haskell,clojure,elixir,erlang,fsharp,ocamlShell & Scripts:
bash,zsh,powershell,batchData/Config:
json,yaml,toml,ini,xml,csvDatabase:
sql,plsql,mongodbDocs:
markdown,latex,asciidocDevOps:
docker,terraform,kubernetes,nginx,apacheOther:
regex,diff,git,protobuf,graphql,solidity,wasm,assemblyScientific/Legacy:
r,matlab,julia,fortran,cobol,pascal
Hint: For plain text, use text or leave language empty.
Client Examples
Node.js
Python
Last updated
