এপিআই ডকুমেন্টেশন

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));