The dpaste API, version 2

New About Yours API Help

How to use it

Response contents


(The curl field spec -F "content=<-" captures stdin to the 'content' field.)

Basic plain-text item creation: curl -s -F "content=<-"

Set syntax to Javascript: curl -s -F "syntax=js" -F "content=<-"

Set expiry (1–365 days): curl -s -F "expiry_days=10" -F "content=<-"

Set username from current environment: curl -s -F "poster=$USER" -F "content=<-"

Batch-paste multiple files (Javascript in this example), with helpful output: