API — create pastes from the command line
# Create a paste
curl -X POST https://paste.erfi.dev/pastes \
-H 'Content-Type: application/json' \
-d '{"content":"Hello world","expiration":86400}' # Pipe a file
cat file.py | jq -Rs '{"content":.,"language":"python"}' | \
curl -X POST https://paste.erfi.dev/pastes \
-H 'Content-Type: application/json' -d @-