# Create (urlencoded) curl -X POST "https://paste.su/dev" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -d "content=Hello+World&type=public&expiration=unlimited&paste_title=Test" # Create (JSON) curl -X POST "https://paste.su/dev" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"content":"Hello JSON","type":"public","expiration":"unlimited","paste_title":"Test JSON"}' # Fetch (public/private) curl -X GET "https://paste.su/dev?paste_id=PASTE_ID" \ -H "Authorization: Bearer YOUR_API_TOKEN" # Fetch (password-protected) curl -X GET "https://paste.su/dev?paste_id=PASTE_ID&password=THE_PASSWORD" \ -H "Authorization: Bearer YOUR_API_TOKEN"