Sign in New API Help About

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

The dpaste.com REST API

The API is for programmatic creation of new items. Anonymous use is permitted, and is the default. Per Terms of Service, automated requests should include a User-Agent header and should not exceed a rate of one request per second.

How to use it

  • HTTP POST to https://dpaste.com/api/v1/
  • Fields: content, language, title, poster
  • Required field: content
  • Syntax choices: Full list in JSON form

Response contents

  • Response code on success will be HTTP 302
  • Location header will be the created item's URL

Usage Example

curl -si -F "content=bloop" https://dpaste.com/api/v1/ | grep Location

Authentication

Available in version 2

More

  • Official CLI client: dpaste.sh
  • The default API version is 2; using https://dpaste.com/api/ is the same as using https://dpaste.com/api/v2/
  • Listed on ProgrammableWeb