paste

API

curl -X POST /api/paste \
  -H 'Content-Type: application/json \
  -d '{"content":"hello","ttl":"1h"}'

Fields

contentstring, required. The paste body.
filenamestring, optional. Shown as the title; sanitised.
languagestring, optional. highlight.js name or file extension.
ttlstring|number, optional. never | 10m | 1h | 1d | 1w | 30d, or seconds.
burnboolean, optional. Delete the paste once it has been read.
passwordstring, optional. Require a password to view.

Routes

GET /{id}view a paste
GET /raw/{id}the body as text/plain
GET /dl/{id}download as an attachment
GET /recentrecent public pastes
GET /healthzstatus

Maximum paste size 1.00 MiB. This page is also available as JSON.