PasteFox API
Create, manage, and share code snippets programmatically. Integrate PasteFox into your apps in minutes.
https://api.pastefox.com/v1stablehttps://api.pastefox.com/v2newSecure Auth
Multiple API keys per account
Rate Limiting
Fair limits with clear headers
CORS Support
Full browser app support
19 Effects
Matrix, Confetti, Fireworks...
Authentication
API key authentication for full access, or create anonymous pastes without auth
Include your API key in requests:
X-API-Key Header (Recommended)
X-API-Key: pk_your_api_key_hereAuthorization Bearer Token
Authorization: Bearer pk_your_api_key_hereAnonymous Paste Creation
You can create pastes without an API key, but with restrictions:
Max 7 days
Auto-expires
Always public
No private pastes
No ownership
Cannot edit or delete
Get your API key: Dashboard → API Keys
API Endpoints
All available public endpoints
Pastes
/pastesoptional/pasteskey/pastes/{slug}optional/pastes/{slug}key/pastes/{slug}key/pastes/{slug}/rawoptional/pastes/{slug}/verifypublic/pastes/{slug}/clonekey/pastes/{slug}/likekeyFolders
/folderskey/folderskey/folders/{id}key/folders/{id}key/folders/{id}keyExplore & Public
/explorepublic/users/public/{username}public/users/public/{username}/pastespublic/healthpublic/statspublicQuick Start
Create your first paste in one request
curl -X POST "https://api.pastefox.com/v1/pastes" \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_your_api_key_here" \
-d '{
"content": "Hello, World!",
"title": "My Paste",
"language": "javascript",
"visibility": "PUBLIC"
}'
Response:
{
"success": true,
"data": {
"slug": "abc123",
"title": "My Paste",
"language": "javascript",
"visibility": "PUBLIC",
"viewCount": 0,
"createdAt": "2026-04-02T12:00:00.000Z"
}
}
Rate Limiting
Rate limit information is included in response headers
Global
200 req / 60s
Paste creation
30 / 10 min
Paste reads
120 / min
X-RateLimit-RemainingRemaining requests in window
X-RateLimit-ResetISO 8601 reset timestamp
Retry-AfterSeconds until retry (on 429)
Warning: Repeated rate limit violations will result in automatic API key revocation.
Paste Effects
Visual reveal effects via the effect field
NONESCRATCHMATRIXGLITCHCONFETTIPUZZLESLOTSSHAKEPASSWORDFIREWORKSTYPEWRITERBLURBURNCRTMEMORYMOORHUHNDECRYPTSPOTLIGHTWHACKRPSTETRISV2 Differences
Same paths, improved response format
Envelope: { data, meta, error } instead of { success, data, error }
Cursor pagination: cursor + nextCursor for efficient paging
Renamed: isOneTimeView → burnAfterRead , search → q
Response Format
Success
{
"success": true,
"data": {
"slug": "abc123",
"title": "My Paste",
"content": "Hello!",
"visibility": "PUBLIC",
"viewCount": 42
}
}
Error
{
"success": false,
"error": "Validation failed",
"details": [
{ "field": "content", "message": "Required" }
]
}