.code { color: green !important; }

The dpaste API, version 1

New About Yours API Help

This version of the API is deprecated. Please use version 2.

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/v1/

Set syntax to Ruby: curl -s -F "language=ruby" -F "content=<-" http://dpaste.com/api/v1/

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

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