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
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.
Returns the metadata plus the full content as JSON.
curl https://pastesk.pages.dev/api/v1/pastes/k4m7xq2a
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().
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"
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"}'