Koltrix logoKoltrixDocs

Wait for an email (verification inbox)

GET/api/v2/agent-mailboxes/:id/wait-for-email

Holds the request open until a matching email arrives or the timeout passes (1 to 60 seconds).

Needs an API key with the read scope. Scopes

Parameters

Path

idstringrequired
The agent mailbox id, or me.

Query

tostring
Only mail sent to this address.
fromstring
Only mail from this address or domain.
subjectstring
Only mail whose subject contains this text.
timeoutnumberdefault 30
Seconds to wait, 1 to 60.
sincestring
Only mail received after this RFC 3339 time.

Notes

  • Returns the message and any one-time code (otp_code) or sign-in link (magic_link) found in it.
  • Use it right after triggering a sign-up or login that emails a code.
  • Without since it looks at the last minute.
  • A message the injection shield rates high risk comes back withheld, with no code.
  • With from, the sign-in link is returned only if it points at that sender's own domain.
  • At most a few waits can be open per mailbox, key and workspace (429 when exceeded).
  • When nothing arrives you get 200 with found: false.

Try it

Send this request from your browser.

Input

What you send

Stays in this browser tab (sessionStorage) and goes only to api.koltrix.com. Create one under Settings → API keys.

Requests are real. Koltrix has no test mode, so use a dedicated key with only the permissions you need and revoke it when you are done.
The agent mailbox id, or me.
Only mail sent to this address.
Only mail from this address or domain.
Only mail whose subject contains this text.
Seconds to wait, 1 to 60.
Only mail received after this RFC 3339 time.
GEThttps://api.koltrix.com/api/v2/agent-mailboxes/me/wait-for-email

Output

What comes back
The response appears here.
Press Send request.