{"api":"r3rr.com","version":"1","endpoints":[{"method":"POST","path":"/api/paste","description":"Create a paste","fields":{"content":"required — paste text (max 512 KB)","title":"optional — title string","language":"optional — language key or \"auto\" (default: auto)","burn_after":"optional — \"1\" to delete on first view","expiry":"optional — seconds: 0, 3600, 86400, 604800, 2592000"},"examples":["curl -F 'content=@file.py' -F 'language=python' https://r3rr.com/api/paste","cat script.sh | curl -F 'content=@-' https://r3rr.com/api/paste"]},{"method":"GET","path":"/api/paste/{code}","description":"Retrieve paste metadata and content","examples":["curl https://r3rr.com/api/paste/abc123"]},{"method":"POST","path":"/api/shorten","description":"Shorten a URL","fields":{"url":"required — the long URL to shorten","title":"optional — label string","expiry":"optional — seconds: 0, 3600, 86400, 604800, 2592000"},"examples":["curl -F 'url=https://example.com/long/path' https://r3rr.com/api/shorten","curl -d '{\"url\":\"https://example.com\"}' -H 'Content-Type: application/json' https://r3rr.com/api/shorten"]},{"method":"GET","path":"/api/shorten/{code}","description":"Retrieve short URL metadata","examples":["curl https://r3rr.com/api/shorten/abc123"]},{"method":"POST","path":"/api/image","description":"Upload an image (JPEG, PNG, GIF, WebP — max 10 MB)","fields":{"image":"required — image file (multipart/form-data)","expiry":"optional — seconds: 0, 3600, 86400, 604800, 2592000"},"examples":["curl -F 'image=@photo.jpg' https://r3rr.com/api/image","curl -F 'image=@screenshot.png' -F 'expiry=86400' https://r3rr.com/api/image"]},{"method":"GET","path":"/api/image/{code}","description":"Retrieve image metadata","examples":["curl https://r3rr.com/api/image/abc123"]}]}