Developers
Premium API Docs
Authenticated HTTP API for Premium accounts only. Create disposable addresses, read inbox, refresh, and list emails. Auth via x-api-key header (never put keys in the URL). Base URL uses your current host: https://temp.toolspire.one
GET /api/v1/me
Verify the API key and return plan / usage.
curl -H "x-api-key: kws_YOUR_KEY" https://temp.toolspire.one/api/v1/me
POST /api/v1/email/generate
Create a disposable address (gmail.com or googlemail.com).
curl -X POST https://temp.toolspire.one/api/v1/email/generate \
-H "x-api-key: kws_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"usePlus":true,"useDot":false,"domain":"gmail"}'
# googlemail.com + plus:
# -d '{"usePlus":true,"useDot":false,"domain":"googlemail"}'
# gmail.com + dots only:
# -d '{"usePlus":false,"useDot":true,"domain":"gmail"}'GET /api/v1/email/inbox?email=
List messages for an alias you own (IMAP keeps the DB updated).
curl -H "x-api-key: kws_YOUR_KEY" \
"https://temp.toolspire.one/api/v1/email/inbox?email=alias%2Btag%40gmail.com"
# also works with @googlemail.com addresses
# Response: { ok, email, data:[{id,from,to,subject,preview,body,date,attachments}], count, totalReceived }POST /api/v1/email/refresh
Explicit re-fetch of the inbox snapshot for one alias.
curl -X POST https://temp.toolspire.one/api/v1/email/refresh \
-H "x-api-key: kws_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]"}'GET /api/v1/emails
List active aliases created with this API key / account.
curl -H "x-api-key: kws_YOUR_KEY" https://temp.toolspire.one/api/v1/emails
GET /api/v1/email/message?email=&id=
Read one message body (marks it read).
curl -H "x-api-key: kws_YOUR_KEY" \ "https://temp.toolspire.one/api/v1/email/message?email=ALIAS&id=MSG_ID"
DELETE /api/v1/email
Deactivate an alias you own (soft delete).
curl -X DELETE https://temp.toolspire.one/api/v1/email \
-H "x-api-key: kws_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]"}'How to get a key
- Register / login → upgrade to Premium (or admin sets plan).
- Dashboard → API Keys → create key (max 2). Free plan cannot create keys.
- Send
x-api-keyon every call.
Premium aliases are private — Free / anonymous users cannot recover or read them. Admin accounts are unlimited (no key cap, no rate limits, no daily quota).