Sign in New API Help About

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

The dpaste.com HTTP API (Version 1)

Per Terms of Service, automated requests should include a User-Agent header and should not exceed a rate of one request per second.

Creating an item

  • HTTP POST to https://dpaste.com/api/v1/
  • Fields: content, language, title, poster
  • Required field: content
  • Syntax: one of the supported syntax choices, or omit for plain-text.

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

Getting details of a single item

Available in version 2 and above

Getting links to a user's items

Available in version 2 and above

Getting details of a user's items

Available in version 2 and above


Authentication

Available in version 2 and above

More

  • Official CLI client: dpaste-cli (downloads)
  • The default API version is 2; https://dpaste.com/api/ functions as https://dpaste.com/api/v2/