Recent pastes

If you like to create a paste you can make a POSTrequest to the /api/pastes/create endpoint.

You also need to pass trough some parameters:

  • title: title of the Paste
  • content: content of the Paste
  • syntax_id: syntax ID of the Paste, you can request a list of the ID's at /api/syntaxes
  • expiry_id: expiry ID of the paste, you can request a list of the ID's at /api/expiries
  • status: status of the Paste (1 for public, 2 for unlisted, 3 for private)

API call preview

CURLCopy to clipboard
$ curl POST
    -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjU2NDdiNjhsdfqqsdfsdqfsgggf'
    -H 'Accept: application/json'
    -H 'Content-Type: application/json'
    -d '{"title":"Test Paste", "content":"Test", "syntax_id":"3", "expiry_id":"1", "status":"1"}'

Response preview

The URL to visit the Paste.

Copy to clipboard