एपीआई दस्तावेज़

REST API से अपने सॉफ़्टवेयर में अस्थायी पते बनाएँ और उनके संदेश पढ़ें। लॉग इन करके डैशबोर्ड से अपनी एपीआई कुंजी कॉपी करें।

Authentication

Send your key in the X-API-Key header (or Authorization: Bearer KEY). Limit: 60 requests / minute.

curl -H "X-API-Key: YOUR_API_KEY" https://www.tempinboxer.com/api/v1/domains

लॉग इन → डैशबोर्ड → आपकी एपीआई कुंजी

Endpoints

GET/domains

List active domains.

{"ok":true,"domains":["example.com","example.net"]}
GET/mailbox?username=john&domain=example.com

Create (reserve) an address. Both parameters are optional – a random name and the default domain are used when omitted.

{"ok":true,"address":"john@example.com"}
GET/inbox?address=john@example.com

List the latest messages (max 100).

{"ok":true,"address":"john@example.com","count":1,"messages":[
  {"id":42,"from_name":"GitHub","from_email":"noreply@github.com","subject":"Verify your email",
   "preview":"Your code is 123456","attachments":0,"read":false,"received_at":"2026-01-01T12:00:00Z"}
]}
GET/message?address=john@example.com&id=42

Read a full message (text, html and attachment links).

DELETE/message?address=john@example.com&id=42

Delete one message.

DELETE/inbox?address=john@example.com

Delete all messages of an address.

Example (JavaScript)

const KEY = "YOUR_API_KEY";
const api = (p) => fetch("https://www.tempinboxer.com/api/v1" + p, { headers: { "X-API-Key": KEY } }).then(r => r.json());

const { address } = await api("/mailbox");
// ...use the address on a sign-up form, then:
const { messages } = await api("/inbox?address=" + encodeURIComponent(address));