API
curl -X POST /api/paste \
-H 'Content-Type: application/json \
-d '{"content":"hello","ttl":"1h"}'
Fields
| content | string, required. The paste body. |
| filename | string, optional. Shown as the title; sanitised. |
| language | string, optional. highlight.js name or file extension. |
| ttl | string|number, optional. never | 10m | 1h | 1d | 1w | 30d, or seconds. |
| burn | boolean, optional. Delete the paste once it has been read. |
| password | string, 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 /recent | recent public pastes |
| GET /healthz | status |
Maximum paste size 1.00 MiB. This page is also available as JSON.