API v1.0 - Live
Paste Sharing
Share code snippets, text, and files instantly. Syntax highlighting, expiration options, and powerful API for automation.
15+
Languages
REST
API
100%
Free
Quick Start
Upload pastes from the command line
Upload Text File
curl -X POST --data-binary @file.txt http://pste.us/api/v1/pastes
Upload via Form
curl -X POST -F "files=@code.py" http://pste.us/api/v1/pastes
JSON API
curl -H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"content":"Hello World","language":"text"}' \
http://pste.us/api/v1/pastes
Pipe Content
echo "Hello World" | curl -X POST --data-binary @- http://pste.us/api/v1/pastes