pastesk API public · free · API keys

The pastesk API

What this is

A free, public paste API like Pastefy's. Send text, get a permanent raw link on this domain. No account needed. CORS is open, so it works from Discord webhooks, bots, userscripts, games, anything that can make an HTTP request. A free API key is optional and lifts your limit. Base URL: https://pastesk.pages.dev

Create a paste POST /api/v1/pastes

Send JSON with content (title and language optional), or just send the raw text as the request body. Both work.

{
  "content": "print('hello from pastesk')",
  "title": "my first paste",
  "language": "lua"
}
# or the one-liner way, raw body, no JSON needed
curl -X POST https://pastesk.pages.dev/api/v1/pastes \
  -H "Content-Type: text/plain" \
  --data "print('hello from pastesk')"
// response (201)
{
  "ok": true,
  "id": "k4m7xq2a",
  "url": "https://pastesk.pages.dev/p/k4m7xq2a",
  "raw": "https://pastesk.pages.dev/raw/k4m7xq2a",
  "delete_key": "xK3mPa9wQr7vTn2sLd8fJh5yGc4b"
}

raw is the link to give Discord, a script, or anything else: plain text, no HTML around it. Keep delete_key if you ever want to remove the paste.

Read a paste GET /api/v1/pastes/<id>

Returns the metadata plus the full content as JSON.

curl https://pastesk.pages.dev/api/v1/pastes/k4m7xq2a

Raw link GET /raw/<id>

Plain text, direct from the domain. /raw/<id>.txt works too if something insists on an extension. This is the link to paste into Discord, a webhook, or game:HttpGet().

Delete a paste DELETE /api/v1/pastes/<id>

Pass the key from creation in the x-delete-key header (or ?key=...). Only the creator's key can delete.

curl -X DELETE https://pastesk.pages.dev/api/v1/pastes/k4m7xq2a \
  -H "x-delete-key: xK3mPa9wQr7vTn2sLd8fJh5yGc4b"

API keys POST /api/v1/keys

Get 200 pastes an hour instead of 20 with a free key. Send it as Authorization: Bearer psk_... or x-api-key: psk_.... A key also lets you GET /api/v1/me to list your pastes, and delete any paste you made with it. Keys are 256-bit random, stored only as a hash on the server, shown once, and cannot be recovered.

curl -X POST https://pastesk.pages.dev/api/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"name":"my bot"}'
curl -X POST https://pastesk.pages.dev/api/v1/pastes \
  -H "Authorization: Bearer psk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content":"hello world"}'
free · shown once

Try it right here

20/hour without a key, 200/hour with one · up to 100 KB each · stored permanently · 1 new key per 24 hours, 5 keys max total