SWIFTBIN API
paste from anywhere
Everything the site does is one HTTP call away. No accounts, no keys — the paste link and its delete token are all yours.
Open the composerCreate a paste
JSON for the polite, raw text for the terminal.
curl -X POST https://api.bin.getswift.cloud/api/paste \
-H "content-type: application/json" \
-d '{
"content": "console.log("hi from swiftbin")",
"language": "javascript",
"expiry": "1 day",
"burn": false
}'curl --data-binary @script.sh \ -H "x-language: bash" \ -H "x-expires-in: 7 days" \ -H "x-burn: 1" \ https://api.bin.getswift.cloud/api/paste
{
"slug": "k4x6wq",
"url": "https://api.bin.getswift.cloud/k4x6wq",
"raw_url": "https://api.bin.getswift.cloud/raw/k4x6wq",
"delete_token": "sbd_…",
"expires_at": 1790000000000
}Endpoints
Plain verbs, plain responses.
POST
/api/pastecreate · json or text/plainGET
/api/paste/:slugfetch as jsonGET
/raw/:slugfetch as text · ?download=1GET
/:slughighlighted pageDELETE
/api/paste/:slugneeds x-delete-tokenLanguages22, from bash to rust
Expiries30 minutes → 30 days
Optionsburn after read · password lock
Limits512 KB · 60 pastes per ip per day