Sign up

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:

Errors
400invalid_body
Malformed or invalid request body
401invalid_key
Missing or unknown API key
403forbidden
Not your bin
404not_found
No such bin or file
410expired | burned
The bin is gone
413too_large
Over the size limit
429rate_limited
Includes a Retry-After header
error404 not found
{ "error": "not_found", "message": "Nothing here." }
terminal
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.

header
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.

Creates per hour20 per IP · 120 per key
Reads per minute60 per IP · 300 per key
Max expiry7d without a key · never with one
response429 too many requests
{ "error": "rate_limited", "message": "Slow down." }
POST/api/bins

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.

Body
files{ name, content, language? }[]required
1 to 10 files, 1 MB total.
titlestringoptional
Defaults to the first file's name.
expires1h | 1d | 7d | never | burnoptional
Defaults to 7d or the account default.
visibilitypublic | unlistedoptional
Defaults to unlisted.
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": "..."
      }
    ]
  }'
response201 created
{
  "id": "q8Tn4w",
  "url": "https://paste.synz.xyz/q8Tn4w",
  "raw": "https://paste.synz.xyz/raw/q8Tn4w",
  "expires_at": "2026-12-11T14:02:00Z"
}
GET/api/bins/:id

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
GET/raw/:id/:filename

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
DEL/api/bins/:id

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"
response204 no content
(empty)
GET/api/me/bins

List your bins

Requires a key. Returns the bins on your account.

Query
cursorstringoptional
Continue from a previous page.
limitnumberoptional
Page size. Defaults to 50.
qstringoptional
Search your bins.
visibilitypublic | unlistedoptional
Only bins with this visibility.
curl -s https://paste.synz.xyz/api/me/bins?limit=50 \
  -H "Authorization: Bearer $SB_KEY"