Skip to content

API reference

mellowmarshe edited this page Mar 24, 2022 · 5 revisions

Pastes

GET /api/p/:id Get a paste by ID
GET /api/p/r/:id Get the raw content of a paste by ID
POST /api/p/n Post a new paste
cURL:

curl 'https://zer0b.in/api/p/n' \
  -H 'Content-Type: application/json' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  --data-raw '{"content":"zzzz"}' 

Stats

GET /api/s Get stats about the instance
GET /api/b/v Get the instances version badge
GET /api/b/t Get the instances total pastes
Clone this wiki locally