The dpaste API, version 2

New About Yours API Help

How to use it

Response contents


Examples

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

Basic plain-text item creation: curl -s -F "content=<-" http://dpaste.com/api/v2/

Set syntax to Javascript: curl -s -F "syntax=js" -F "content=<-" http://dpaste.com/api/v2/

Set expiry (1–365 days): curl -s -F "expiry_days=10" -F "content=<-" http://dpaste.com/api/v2/

Set username from current environment: curl -s -F "poster=$USER" -F "content=<-" http://dpaste.com/api/v2/

Batch-paste multiple files (Javascript in this example), with helpful output: http://dpaste.com/2VSARYG

More