API
Base URL https://paste.synz.xyz. All requests and responses are JSON unless noted. Errors share one shape, with a status code and an error value:
{ "error": "not_found", "message": "Nothing here." }
cat app.js | curl -sF 'file=@-' paste.synz.xyz
A multipart form with file=@- creates a single-file bin and returns the URL as plain text.
Authentication
This is optional. Send your API key as a bearer token. With a key, bins are attached to your account, never expiry is allowed and rate limits are higher.
Authorization: Bearer sb_live_…
Rate limits
Limits are counted per IP without a key and per key with one. Over the limit you get a 429 with a Retry-After header.
{ "error": "rate_limited", "message": "Slow down." }
Create a bin
Creates a bin with one or more files. Works without a key; with a key, the bin is added to your account and can be deleted later.
curl -X POST https://paste.synz.xyz/api/bins \
-H "Authorization: Bearer $SB_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "auth middleware",
"expires": "7d",
"files": [
{
"name": "auth.js",
"content": "..."
}
]
}'
const res = await fetch('https://paste.synz.xyz/api/bins', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SB_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"title": "auth middleware",
"expires": "7d",
"files": [
{
"name": "auth.js",
"content": "..."
}
]
}),
});
const data = await res.json();
import os
import requests
res = requests.post(
"https://paste.synz.xyz/api/bins",
headers={"Authorization": f"Bearer {os.environ['SB_KEY']}"},
json={
"title": "auth middleware",
"expires": "7d",
"files": [
{
"name": "auth.js",
"content": "..."
}
]
},
)
data = res.json()
{
"id": "q8Tn4w",
"url": "https://paste.synz.xyz/q8Tn4w",
"raw": "https://paste.synz.xyz/raw/q8Tn4w",
"expires_at": "2026-12-11T14:02:00Z"
}
Get a bin
Returns the bin metadata and its files. Fetching a burn bin through this endpoint burns it.
curl -s https://paste.synz.xyz/api/bins/q8Tn4w
const res = await fetch('https://paste.synz.xyz/api/bins/q8Tn4w');
const data = await res.json();
import requests
res = requests.get(
"https://paste.synz.xyz/api/bins/q8Tn4w",
)
data = res.json()
Raw file
Returns text/plain; charset=utf-8. /raw/:id without a filename returns the first file.
curl -s https://paste.synz.xyz/raw/q8Tn4w/auth.js
const res = await fetch('https://paste.synz.xyz/raw/q8Tn4w/auth.js');
const data = await res.text();
import requests
res = requests.get(
"https://paste.synz.xyz/raw/q8Tn4w/auth.js",
)
data = res.text
Delete a bin
Requires a key. Only the owner can delete.
curl -X DELETE https://paste.synz.xyz/api/bins/q8Tn4w \
-H "Authorization: Bearer $SB_KEY"
const res = await fetch('https://paste.synz.xyz/api/bins/q8Tn4w', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.SB_KEY}`,
},
});
import os
import requests
res = requests.delete(
"https://paste.synz.xyz/api/bins/q8Tn4w",
headers={"Authorization": f"Bearer {os.environ['SB_KEY']}"},
)
(empty)
List your bins
Requires a key. Returns the bins on your account.
curl -s https://paste.synz.xyz/api/me/bins?limit=50 \
-H "Authorization: Bearer $SB_KEY"
const res = await fetch('https://paste.synz.xyz/api/me/bins?limit=50', {
headers: {
Authorization: `Bearer ${process.env.SB_KEY}`,
},
});
const data = await res.json();
import os
import requests
res = requests.get(
"https://paste.synz.xyz/api/me/bins?limit=50",
headers={"Authorization": f"Bearer {os.environ['SB_KEY']}"},
)
data = res.json()