$ cat README.md
# anonmsg
Anonymous inbox API. No signup, no bs.
// perfect for contact forms, feedback, whatever
Quick start:
curl -X POST https://api.anonmsg.dev/v1/inbox
# returns: { "private_key": "xyz789" }
$ cat api_docs.md
# API Reference
// three (main) endpoints. That's it.
## POST /api/inbox
Creates a new inbox
# Request
curl -X POST https://api.anonmsg.dev/v1/inbox \ -H "Content-Type: application/json"
# Response
{ "private_key": "0KKLJKJDKJCLDJCDKLCJKLDJLCD" }
## POST /api/send/{inboxID}
Send message to inbox
# Request
curl -X POST https://api.anonmsg.dev/v1/send/{inbox_key} \ -H "Content-Type: application/json" \ -d { "greeting": "Hello from anonymous!" }
# Response
{ "message": { "id": 3467273, "content": "{ \"greeting\": \"Hello from anonymous!\" }", "created_at": 1754633348 } }
## GET /api/inbox/:inbox_id
Read messages (requires private key)
# Request
curl https://api.anonmsg.dev/inbox/{private_key}/messages
# Response
{ "messages": [ { "id": 3467273, "content": "{ \"greeting\": \"Hello from anonymous!\" }", "created_at": 1754633348 } ] }
$ grep -r "use.*case" examples/
# Common Use Cases
// contact forms
websites, portfolios, landing pages
<form onClick={(e) => postToAnonMsg(e)} />
// feedback collection
bug reports, suggestions, feedback
fetch(anonmsg_api_url, {
method: 'POST', body: feedback
})
// webhooks
receive notifications, alerts
curl -X POST webhook_inbox \
-d "Server down: $hostname"
// anything else
and anything else you want to save
#no account
#no tracking
$ ./start_hacking.sh
Ready to build?
# Takes ~0.1 seconds