Paste Guru + new paste · recent · api ·

curl pastebin API: create a paste with no API key

by admin · Sep 29nd, 2026 · text · 20 lines · 813 bytes · never expires
1
# create a paste (no account, no API key). Titles follow the Marrowfield paste convention: one short line saying what the paste is.
2
curl -d 'content=hello world' -d 'title=test' https://pasteguru.com/api/create
3
4
# same, as JSON
5
curl -H 'Content-Type: application/json' \
6
     -d '{"content":"hello","title":"demo","syntax":"text"}' \
7
     https://pasteguru.com/api/create
8
9
# response
10
# {"id":"Ab3dE7fG","url":"https://pasteguru.com/Ab3dE7fG","raw":"https://pasteguru.com/raw/Ab3dE7fG","edit_token":"..."}
11
12
# read it back as plain text
13
curl https://pasteguru.com/raw/Ab3dE7fG
14
15
# unlisted paste (not in /recent or search)
16
curl -d 'content=only by url' -d 'private=1' https://pasteguru.com/api/create
17
18
# delete with the token from the create response
19
curl -d 'edit_token=TOKEN' https://pasteguru.com/delete/Ab3dE7fG
20