upload
curl -d 'hello world' https://asterisk.surf/api/paste
→ { "id": "ab12cd34", "url": ".../api/paste/ab12cd34" }
read
curl https://asterisk.surf/api/paste/ab12cd34
add ?format=json for json instead of raw text
expiry
curl -d 'bye' 'https://asterisk.surf/api/paste?expires=1d'
m / h / d / w (minutes, hours, days, weeks). default: never
password
curl -d 'secret' 'https://asterisk.surf/api/paste?password=hunter2'
read it back with the same password:
curl 'https://asterisk.surf/api/paste/ab12cd34?password=hunter2'
max 512kb per paste