Skip to main content

GitHub Actions

Use the TempInbox API directly from shell steps or JavaScript test runners.

Shell (cURL)

.github/workflows/e2e.yml

Node.js test runner

.github/workflows/playwright.yml

GitLab CI

.gitlab-ci.yml

Environment variable pattern

For test frameworks that need the address upfront (before the test runner starts):
github-actions step

Rate limit considerations

In CI with many parallel jobs:
  • Each job should create its own inbox (parallel-safe by design)
  • Add 2–3 second delays between poll attempts
  • Use a timeout of 60 seconds for staging SMTP (external delivery is slower)
  • Do not share inboxes across jobs — race conditions will cause flaky tests

Secrets

The TempInbox API requires no API key for the public instance. No secrets to manage in CI. For self-hosted instances with PASSWORDS set, add the password as a CI secret: