copypaste.wiki API
Create, read and delete pastes from scripts and tools. Send form fields (application/x-www-form-urlencoded) or JSON; responses are plain text unless noted.
Your API key
Send it as the api_key field. Keep it secret.
Create a paste
POSThttps://copypaste.wiki/api/paste
Creates a paste and returns its URL. Works without a key too (the paste is then owned by nobody and can't be deleted).
FieldRequiredDescription
api_keynoYour API key. Needed for private pastes and to delete later.
contentyesPaste text, UTF-8, up to 512 KB.
titlenoPaste name.
syntaxnonone, luau, lua, json, javascript, typescript, python, cpp, c, csharp, java, rust, go, bash, sql, html, css, yaml, ini, markdown, diff. Default none.
expirenoN, 10M, 1H, 1D, 1W, 2W, 1M, 6M, 1Y. Default N (never).
exposurenopublic, unlisted, private. Default public.
passwordnoProtect the paste with a password.
burnno1 to delete the paste after the first view.
foldernoFolder name (with api_key only).
curl -X POST https://copypaste.wiki/api/paste \ -d "api_key=YOUR_API_KEY" \ -d "title=loader v2" \ -d "syntax=luau" \ -d "exposure=unlisted" \ --data-urlencode "[email protected]" # → https://copypaste.wiki/k3Fq9xAb
Get raw paste
GEThttps://copypaste.wiki/raw/{id}
Returns the paste as text/plain. Private pastes need ?api_key=, password-protected ones need ?password=. Burn-after-read pastes are deleted by this request.
curl https://copypaste.wiki/raw/k3Fq9xAb
-- in Luau
local src = game:HttpGet("https://copypaste.wiki/raw/k3Fq9xAb")List your pastes
POSThttps://copypaste.wiki/api/list
Returns your pastes as JSON, newest first.
FieldRequiredDescription
api_keyyesYour API key.
limitno1–1000. Default 50.
foldernoOnly pastes in this folder.
curl -X POST https://copypaste.wiki/api/list -d "api_key=YOUR_API_KEY"
[
{
"id": "k3Fq9xAb",
"url": "https://copypaste.wiki/k3Fq9xAb",
"title": "VM dispatcher notes",
"syntax": "luau",
"size": 1126,
"exposure": "unlisted",
"folder": "deobf",
"views": 4,
"created": "2026-10-10T10:47:00.000Z",
"expires": null
}
]Delete a paste
DELETEhttps://copypaste.wiki/api/paste/{id}
Deletes one of your pastes and returns Paste removed. POST https://copypaste.wiki/api/delete with id does the same.
curl -X DELETE "https://copypaste.wiki/api/paste/k3Fq9xAb?api_key=YOUR_API_KEY"
Errors
Errors are plain text starting with Bad API request, plus an HTTP status:
400missing or invalid field
401invalid api_key, or wrong password
403not your paste
404paste not found or expired
413content is larger than the size limit
429too many requests, slow down