Paste From Your Terminal in One Line

The simplest possible paste: pipe any text into a POST request and extract the short URL from the JSON response with jq. Works with files too — just replace the echo with cat myfile.txt.

echo "Hello, world" | curl -s -X POST https://urlpaste.com/api/paste \ -H "Content-Type: application/json" \ -d "{\"content\": \"$(echo 'Hello, world')\"}" | jq -r .url

Burn-after-read secrets

Sharing a secret that should self-destruct: this creates a paste with burn-after-read enabled, so it deletes itself the moment someone opens it, plus a one-hour expiration as a safety net. Perfect for credentials, tokens, or anything that must not persist.

curl -s -X POST https://urlpaste.com/api/paste \ -H "Content-Type: application/json" \ -d '{"content": "API_KEY=sk_live_...", "burn": true, "expire": "1h"}' | jq -r .url

Pipe real tool output

Piping real tool output — like build logs or error traces — straight into a shareable paste. Combine this with shell aliases and you've got a one-keystroke "share this error" command for your whole team.

cat deploy.log | curl -s -X POST https://urlpaste.com/api/paste \ -H "Content-Type: application/json" \ -d "{\"content\": \"$(cat deploy.log | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')\"}" | jq -r .url