Private by design. No sign-up, no personal data.
See plans
TempifyTempify

Developers / QA testing

QA testing with temporary email

Use QA inboxes to test signup, OTP and password reset flows end to end. Each test run gets a fresh address, the wait endpoint holds one request until the mail arrives, and the OTP endpoint reads the code out of the latest message. No polling loop, no HTML parsing in your tests.

How a QA test runs

  1. Create an inbox with POST /api/v1/inbox. Pass a prefix such as qa-signup so the address is readable in your app logs.
  2. Trigger the email in your app with that address, exactly as a real user would.
  3. Wait for the mail with GET /api/v1/inbox/{address}/wait. It returns the moment a message lands, or after the timeout with timed_out: true.
  4. Read the code with GET /api/v1/inbox/{address}/otp. It returns the extracted OTP, all candidate codes, and the links from the latest message.

Inboxes created through the API are QA inboxes: they show up in the dashboard under API and usage, with message counts and usage against your plan allowance. Mail is receive-only. There is no sending from a QA inbox.

Playwright example

Signup flow with an email OTP. Set TEMPIFY_API_KEY in your CI environment. The wait call holds up to 30 seconds here; one wait counts as one API call.

playwright-qa.spec.ts

import { test, expect } from '@playwright/test';

const API_BASE = 'https://tempify.org/api/v1';
const API_KEY = process.env.TEMPIFY_API_KEY as string;

async function createQaInbox(prefix: string) {
  const res = await fetch(API_BASE + '/inbox', {
    method: 'POST',
    headers: { 'x-api-key': API_KEY, 'Content-Type': 'application/json' },
    body: JSON.stringify({ address: prefix }),
  });
  if (!res.ok) throw new Error('Could not create QA inbox: ' + res.status);
  const data = await res.json();
  return data.inbox.address as string;
}

async function waitForOtp(address: string, timeoutSeconds = 30) {
  const res = await fetch(
    API_BASE + '/inbox/' + encodeURIComponent(address) + '/wait?timeout=' + timeoutSeconds,
    { headers: { 'x-api-key': API_KEY } },
  );
  if (!res.ok) throw new Error('Wait failed: ' + res.status);
  const data = await res.json();
  if (data.timed_out) throw new Error('No mail arrived in ' + timeoutSeconds + 's');
  const otpRes = await fetch(API_BASE + '/inbox/' + encodeURIComponent(address) + '/otp', {
    headers: { 'x-api-key': API_KEY },
  });
  const otpData = await otpRes.json();
  return otpData.otp as string;
}

test('signup with email OTP', async ({ page }) => {
  const email = await createQaInbox('pw-signup');
  await page.goto('https://yourapp.example.com/signup');
  await page.getByLabel('Email').fill(email);
  await page.getByRole('button', { name: 'Create account' }).click();
  const code = await waitForOtp(email);
  await page.getByLabel('Verification code').fill(code);
  await page.getByRole('button', { name: 'Verify' }).click();
  await expect(page.getByText('Welcome')).toBeVisible();
});

Cypress example

Password reset flow. The wait request needs a timeout above the default because the server holds the request while it waits for mail. Set the key with CYPRESS_TEMPIFY_API_KEY or in cypress.env.json.

cypress/support/commands.js

// cypress/support/commands.js
const API_BASE = 'https://tempify.org/api/v1';
const API_KEY = Cypress.env('TEMPIFY_API_KEY');

Cypress.Commands.add('createQaInbox', (prefix) => {
  return cy
    .request({
      method: 'POST',
      url: API_BASE + '/inbox',
      headers: { 'x-api-key': API_KEY },
      body: { address: prefix },
    })
    .then((res) => res.body.inbox.address);
});

Cypress.Commands.add('waitForOtp', (address, timeoutSeconds = 30) => {
  return cy
    .request({
      method: 'GET',
      url: API_BASE + '/inbox/' + encodeURIComponent(address) + '/wait?timeout=' + timeoutSeconds,
      headers: { 'x-api-key': API_KEY },
      timeout: 60000,
    })
    .then((res) => {
      if (res.body.timed_out) throw new Error('No mail arrived in ' + timeoutSeconds + 's');
      return cy
        .request({
          method: 'GET',
          url: API_BASE + '/inbox/' + encodeURIComponent(address) + '/otp',
          headers: { 'x-api-key': API_KEY },
        })
        .then((otpRes) => otpRes.body.otp);
    });
});

// in a spec file
it('resets a password with a QA inbox', () => {
  cy.createQaInbox('cy-reset').then((email) => {
    cy.visit('https://yourapp.example.com/forgot-password');
    cy.get('input[name=email]').type(email);
    cy.contains('Send reset link').click();
    cy.waitForOtp(email).then((code) => {
      cy.get('input[name=code]').type(code);
      cy.contains('Verify').click();
      cy.contains('Choose a new password').should('be.visible');
    });
  });
});

Private domain per team

QA mail on a shared public domain can collide with other teams and is easy to fingerprint. Add your own domain in the dashboard under Custom domains, verify it with the TXT record, point its MX records at Cloudflare Email Routing as the dashboard shows, then create QA inboxes on it:

Create a QA inbox on a private domain

curl -X POST https://tempify.org/api/v1/inbox \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address": "qa-signup", "domain": "qa.yoursite.com"}'

A private domain is never on the public domain list. If the domain is not verified on your account, the API answers 403 with domain_not_verified.

Webhooks instead of waiting

If your test harness has a server, register an https endpoint in the dashboard under API and usage, and choose which events it gets: message.received when mail arrives, and inbox.created when the API creates an inbox. Payloads are signed with HMAC-SHA256. Verify the signature before trusting a delivery:

Verify a webhook delivery

import { createHmac, timingSafeEqual } from 'node:crypto';

// Verify the X-Tempify-Signature header on every delivery.
// The signature is HMAC-SHA256 of timestamp + '.' + raw body, using the
// signing secret shown for the endpoint in the dashboard.
function verifyWebhook(req, rawBody, secret) {
  const signature = req.headers['x-tempify-signature'];
  const timestamp = req.headers['x-tempify-timestamp'];
  if (!signature || !timestamp) return false;
  const expected =
    'sha256=' +
    createHmac('sha256', secret)
      .update(timestamp + '.' + rawBody)
      .digest('hex');
  return timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}

Deliveries retry up to 3 times on transient failures and are logged in the dashboard, so a failed test run can show whether the webhook ever fired.

What ships now, and what is next

  • Shipping now: QA inboxes on public or private domains, OTP and code extraction, wait_for_email long-poll (up to 55 seconds per call), signed webhooks for message.received and inbox.created, and dashboard usage analytics.
  • Coming next: a WebSocket stream for mail events, so a test runner can subscribe instead of holding a long-poll request. There is no WebSocket yet. That needs persistent-connection infrastructure the app does not have yet, so long-poll is the supported primitive today.
  • Pricing: Developer at $19/mo with 10,000 API calls a month (checkout coming soon, join the waitlist on the pricing page), Business at $49/mo with 50,000 calls. Calls beyond the allowance are metered at $5 per additional 1,000 calls and shown in the dashboard; overage is recorded and is not charged automatically yet. A separate Team plan and a higher Business band are not separate prices yet; teams use Business at $49 today.

Full endpoint reference

Every v1 endpoint, with request and response examples.