Skip to main content

Pattern

Standard library only: net/http + encoding/json. No SDK, no API key.
POST /api/new_address is Turnstile-protected on the public instance. Pre-create addresses in the web UI and reuse the JWT, or self-host with Turnstile disabled. See API Overview.

Helper: tempinbox.go

tempinbox.go

Example: go test

signup_test.go

Tips

  • t.Parallel() is safe — one inbox per test by construction
  • 2–3s poll interval, 60s timeout for external SMTP in CI — list responses cached up to 60s at offset=0
  • metadata is a JSON string — unmarshal it separately, as the helper does