saci.cc API
A simple, free HTTP API to create temporary addresses and read the emails they get. Handy for end-to-end tests of sign-up and password reset flows.
Base URL
https://saci.cc/api
Authentication
Every call needs an API key. It's free: sign in with GitHub and create yours. The site and the extension still need no sign-up. Create a key
Send the key in the Authorization header:
Authorization: Bearer saci_...
The examples on this page read the key from the SACI_API_KEY environment variable, so it stays out of your code:
export SACI_API_KEY=saci_...
Each account can have up to 5 keys. A key is shown only once, when it's created, and you can revoke it anytime.
Without a key, or with an invalid or revoked one, you get a 401 with the error and where to create a key:
{
"error": "An API key is required. Sign in with GitHub to create one, then send it as 'Authorization: Bearer <key>'.",
"keys": "https://saci.cc/account/"
}GitHub accounts younger than 30 days can't sign in to create keys, and their keys get a 401 that explains why. If you need an exception, write to oi@saci.cc.
Private inboxes
An inbox created with an API key (POST /addresses or create_inbox on MCP) belongs to your account for 7 days, and creating it again with the same account extends that. Meanwhile, only your account's keys can list, read and delete its emails, or download attachments without a signed link. Any other account gets a 403:
{ "error": "This inbox was created with another account's API key. Only that account can read it." }Nobody else can create an inbox with the same name, neither another account nor the website. They get a 409:
{ "error": "This name belongs to another account right now. Pick another one." }Attachment urls in responses are still signed and work without a key. Inboxes created on the website or in the extension stay public: anyone who knows the address can read them.
Quick start
Create an address, use it wherever you need, and wait for the email:
# 1. Create an address
curl -X POST https://saci.cc/api/addresses \
-H "Authorization: Bearer $SACI_API_KEY"
# 2. Wait for an email (up to 25 s)
curl "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails?wait=25" \
-H "Authorization: Bearer $SACI_API_KEY"
# 3. Read the email
curl "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails/{messageId}" \
-H "Authorization: Bearer $SACI_API_KEY"const headers = { Authorization: `Bearer ${process.env.SACI_API_KEY}` };
// 1. Create an address
const { address } = await fetch("https://saci.cc/api/addresses", { method: "POST", headers }).then((r) => r.json());
// 2. Wait for an email (up to 25 s)
const { emails } = await fetch(`https://saci.cc/api/addresses/${address}/emails?wait=25`, { headers }).then((r) => r.json());
// 3. Read the email
const email = await fetch(`https://saci.cc/api/addresses/${address}/emails/${emails[0].messageId}`, { headers }).then((r) => r.json());
console.log(email.subject, email.text);import os
import requests
saci = requests.Session()
saci.headers["Authorization"] = "Bearer " + os.environ["SACI_API_KEY"]
# 1. Create an address
address = saci.post("https://saci.cc/api/addresses").json()["address"]
# 2. Wait for an email (up to 25 s)
emails = saci.get(f"https://saci.cc/api/addresses/{address}/emails", params={"wait": 25}).json()["emails"]
# 3. Read the email
email = saci.get(f"https://saci.cc/api/addresses/{address}/emails/{emails[0]['messageId']}").json()
print(email["subject"], email["text"])End-to-end tests
The saci.cc package on npm does the waiting for you: it creates the inbox and returns the verification code or link as soon as the email arrives. It works with Playwright, Cypress or any Node script. It reads your key from the SACI_API_KEY environment variable.
npm install --save-dev saci.cc
Waiting for an email can take longer than the default test timeout, so raise it.
import { test, expect } from "@playwright/test";
import { createInbox } from "saci.cc";
test("sign up with a verification code", async ({ page }) => {
test.setTimeout(90_000);
// The key comes from the SACI_API_KEY environment variable
const inbox = await createInbox();
await page.goto("https://your-app.com/signup");
await page.getByLabel("Email").fill(inbox.address);
await page.getByRole("button", { name: "Sign up" }).click();
const code = await inbox.waitForCode({ from: "your-app.com" });
await page.getByLabel("Verification code").fill(code);
await page.getByRole("button", { name: "Verify" }).click();
await expect(page.getByText("Welcome")).toBeVisible();
});Waiting for an email can take longer than the default test timeout, so raise it.
// cypress.config.ts
import { defineConfig } from "cypress";
import { Saci } from "saci.cc";
// Reads SACI_API_KEY, or pass it: new Saci({ apiKey: "saci_..." })
const saci = new Saci();
export default defineConfig({
e2e: {
setupNodeEvents(on) {
on("task", {
createInbox: async () => (await saci.createInbox()).address,
waitForCode: (address: string) => saci.inbox(address).waitForCode(),
});
},
},
});
// cypress/e2e/signup.cy.ts
it("signs up with a verification code", () => {
cy.task<string>("createInbox").then((address) => {
cy.visit("/signup");
cy.get("input[name=email]").type(address);
cy.contains("button", "Sign up").click();
cy.task<string>("waitForCode", address, { timeout: 90_000 }).then((code) => {
cy.get("input[name=code]").type(code);
cy.contains("button", "Verify").click();
});
});
});import { createInbox } from "saci.cc";
// Uses the key in SACI_API_KEY
const inbox = await createInbox();
console.log(inbox.address);
// The verification code, or a link from the email
const code = await inbox.waitForCode({ timeout: 60_000 });
const link = await inbox.waitForLink({ match: "/confirm" });
// Or the whole email: html, text, links, attachments...
const email = await inbox.waitForEmail({ subject: "Welcome" });Every option is in the package README: npmjs.com/package/saci.cc
Endpoints
Create address
POST/addresses
Generates a new random address. Nothing to register: any email sent to it is available for about a day. The inbox is private to your account for 7 days, and if the name belongs to another account you get a 409.
| Name | In | Description |
|---|---|---|
name | query | Optional. Address name (3 to 32 letters, numbers, dots, dashes or underscores). Random if omitted. |
curl -X POST https://saci.cc/api/addresses \ -H "Authorization: Bearer $SACI_API_KEY"
Response · 201
{ "address": "a1b2c3d4e5f60718@saci.cc" }List emails
GET/addresses/{address}/emails
Lists received emails, newest first. With wait, the request stays open until an email arrives (25 seconds at most), so you don't have to poll in a loop.
| Name | In | Description |
|---|---|---|
addressrequired | path | Full address, e.g. a1b2c3d4e5f60718@saci.cc |
wait | query | Seconds to wait for an email, up to 25. Without it, the response is immediate. |
after | query | ISO 8601 date. With wait, waits for an email received after it. |
curl "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails?wait=25" \ -H "Authorization: Bearer $SACI_API_KEY"
Response · 200
{
"emails": [
{
"messageId": "0100019a2b3c4d5e-6f7a8b9c-...",
"from": "GitHub <noreply@github.com>",
"subject": "[GitHub] Please verify your email address",
"receivedAt": "2026-10-20T15:30:00.000Z",
"verificationCode": "482913",
"verificationCodeOrigin": null,
"verificationLink": "https://github.com/users/confirm_verification/7f3e..."
}
]
}Read email
GET/addresses/{address}/emails/{messageId}
Returns the email's content as HTML and plain text, its links, the verification code and the link to confirm the address or sign in (null when there isn't one). When the sender declares the code in an OTP-Token header, the code comes from it and verificationCodeOrigin has the site it's for; otherwise verificationCodeOrigin is null.
| Name | In | Description |
|---|---|---|
addressrequired | path | Full address, e.g. a1b2c3d4e5f60718@saci.cc |
messageIdrequired | path | The messageId from the list |
curl "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails/{messageId}" \
-H "Authorization: Bearer $SACI_API_KEY"Response · 200
{
"messageId": "0100019a2b3c4d5e-6f7a8b9c-...",
"from": "GitHub <noreply@github.com>",
"subject": "[GitHub] Please verify your email address",
"receivedAt": "2026-10-20T15:30:00.000Z",
"html": "<p>Your code is <b>482913</b></p>",
"text": "Your code is 482913",
"verificationCode": "482913",
"verificationCodeOrigin": null,
"verificationLink": "https://github.com/users/confirm_verification/7f3e...",
"links": ["https://github.com/users/confirm_verification/7f3e...", "https://github.com/settings/emails"],
"attachments": [
{
"index": 0,
"filename": "invoice.pdf",
"contentType": "application/pdf",
"size": 48213,
"inline": false,
"url": "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails/0100019a2b3c4d5e-6f7a8b9c-.../attachments/0?exp=1792596600&sig=..."
}
]
}Download attachment
GET/addresses/{address}/emails/{messageId}/attachments/{index}
Redirects to a download link for the attachment, valid for a few minutes. The index comes from the email's attachments list. Each attachment's url in the email comes already signed and works without a key for about 24 hours, so you can open it straight in a browser.
| Name | In | Description |
|---|---|---|
addressrequired | path | Full address, e.g. a1b2c3d4e5f60718@saci.cc |
messageIdrequired | path | The messageId from the list |
indexrequired | path | Position of the attachment in the attachments list, starting at 0 |
curl -L -OJ "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails/{messageId}/attachments/0" \
-H "Authorization: Bearer $SACI_API_KEY"Response · 302
Delete email
DELETE/addresses/{address}/emails/{messageId}
Deletes one email and its attachments. Returns 204, or 404 if it doesn't exist.
| Name | In | Description |
|---|---|---|
addressrequired | path | Full address, e.g. a1b2c3d4e5f60718@saci.cc |
messageIdrequired | path | The messageId from the list |
curl -X DELETE "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails/{messageId}" \
-H "Authorization: Bearer $SACI_API_KEY"Response · 204
Empty inbox
DELETE/addresses/{address}/emails
Deletes every email in the inbox and says how many there were.
| Name | In | Description |
|---|---|---|
addressrequired | path | Full address, e.g. a1b2c3d4e5f60718@saci.cc |
curl -X DELETE "https://saci.cc/api/addresses/a1b2c3d4e5f60718@saci.cc/emails" \ -H "Authorization: Bearer $SACI_API_KEY"
Response · 200
{ "deleted": 3 }Send feedback
POST/feedback
For agents (and people) to say what didn't work: an unexpected response, a confusing error, something missing from the docs or the API. A person reads each one and replies. Up to 20 a day per account.
| Name | In | Description |
|---|---|---|
kindrequired | JSON body | bug, confusing, docs, feature, praise or other |
messagerequired | JSON body | What you tried, what happened and what you expected, in up to 4000 characters |
where | JSON body | Optional. The endpoint, MCP tool or page it's about |
agent | JSON body | Optional. The agent's or model's name |
curl -X POST https://saci.cc/api/feedback \
-H "Content-Type: application/json" \
-d '{"kind":"confusing","message":"wait=30 returned 400 without saying that the maximum is 25.","where":"GET /addresses/{address}/emails","agent":"Claude Code"}' \
-H "Authorization: Bearer $SACI_API_KEY"Response · 201
{
"id": "mhb2x0k3a1b2c3d4",
"status": "open",
"note": "Thanks. A person reads every feedback. Check its status and the reply later with GET /api/feedback."
}Your feedback
GET/feedback
Lists the feedback your account sent, newest first, with its status (open, planned, done or wontfix) and the reply, when there is one.
curl "https://saci.cc/api/feedback" \ -H "Authorization: Bearer $SACI_API_KEY"
Response · 200
{
"feedback": [
{
"id": "mhb2x0k3a1b2c3d4",
"created_at": "2026-11-11T10:00:00.000Z",
"kind": "confusing",
"message": "wait=30 returned 400 without saying that the maximum is 25.",
"where": "GET /addresses/{address}/emails",
"status": "done",
"reply": "The 400 now says the maximum is 25.",
"updated_at": "2026-11-11T14:20:00.000Z"
}
]
}Webhooks
On the Pro and Team plans, instead of checking the inbox over and over, your account can get each email in a POST. It covers emails that reach your account's inboxes (see Private inboxes). Set an HTTPS URL on your account page; it has to be on the public internet, so localhost and private IPs are refused. Set up the webhook
When an email arrives, saci.cc sends this JSON. verificationCode and verificationLink are null when the email has no code or confirmation link, and verificationCodeOrigin is null unless the code came from an OTP-Token header:
{
"event": "email.received",
"address": "a1b2c3d4e5f60718@saci.cc",
"messageId": "0100019a2b3c4d5e-6f7a8b9c-...",
"from": "GitHub <noreply@github.com>",
"subject": "[GitHub] Please verify your email address",
"receivedAt": "2026-10-20T15:30:00.000Z",
"verificationCode": "482913",
"verificationCodeOrigin": null,
"verificationLink": "https://github.com/users/confirm_verification/7f3e...",
"links": ["https://github.com/users/confirm_verification/7f3e...", "https://github.com/settings/emails"]
}With these headers:
Content-Type: application/json User-Agent: saci.cc-webhooks Saci-Signature: t=1792596600,v1=5f1c9a0e7b...
Saci-Signature holds when it was sent (t, in Unix seconds) and a hex HMAC-SHA256 (v1) of "<t>.<body>", made with the webhook secret (whsec_...) shown on your account page. Check the signature against the body exactly as it arrived, before parsing the JSON, and refuse old deliveries. In Node:
import { createHmac, timingSafeEqual } from "node:crypto";
// header: the Saci-Signature header; body: the request body exactly as it arrived;
// secret: the webhook secret (whsec_...) from your account page
function verifySaci(header, body, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((part) => part.split("=")));
// Refuse deliveries signed more than 5 minutes ago
if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = createHmac("sha256", secret).update(`${t}.${body}`).digest("hex");
return v1.length === expected.length && timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
// With Express, read the raw body so the signature matches
app.post("/saci", express.raw({ type: "application/json" }), (req, res) => {
const body = req.body.toString("utf8");
if (!verifySaci(req.get("Saci-Signature") ?? "", body, process.env.SACI_WEBHOOK_SECRET)) {
return res.sendStatus(400);
}
const email = JSON.parse(body);
if (email.event === "email.received") console.log(email.address, email.verificationCode);
res.sendStatus(200);
});- Your URL has 5 seconds to answer with a 2xx status. If it fails, saci.cc tries once more, and that's it. Redirects aren't followed.
- Your account page shows how the last delivery went.
- The "Send a test" button sends a POST with "event": "test" and made-up values, so you can check your URL and signature code.
Limits and errors
- Requests per minute, across all of the account's keys: 120 on Free, 600 on Pro and 2,000 on Team. Above that you get a 429, with a Retry-After header saying how many seconds to wait.
- On Free, an account creates up to 1,000 inboxes a month with its keys (API and MCP, counting every creation). From 800 on, creating one also returns a "notice" field saying how many are left; past 1,000, it returns 402 until the month turns (UTC). Pro and Team have no such cap.
- wait goes up to 25 seconds per request. If time runs out, you get a normal response with the current list (which may be empty).
- Emails are deleted about a day after they arrive. After that, reading one returns 404.
- An invalid address or parameter returns 400.
- An inbox another account created with its key returns 403, and creating a name that belongs to another account returns 409.
- There's no password: only your account can read inboxes created with your key, for 7 days (30 on Pro, 90 on Team), but anyone who knows the address of an inbox created on the website or in the extension can read it. Don't use it for anything sensitive.
Using it with AI agents
If you use Claude Code, Cursor or another agent, the MCP server does all of this without writing code, with the same key. See the MCP server
This documentation is also available as plain text for LLMs: /llms.txt · /llms-full.txt
Contact
Questions, problems, a higher limit or a key blocked by mistake: write to oi@saci.cc.