Wait for an email (verification inbox)
GET
/api/v2/agent-mailboxes/:id/wait-for-emailHolds 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
idstringrequiredThe agent mailbox id, or
me.Query
tostringOnly mail sent to this address.
fromstringOnly mail from this address or domain.
subjectstringOnly mail whose subject contains this text.
timeoutnumberdefault 30Seconds to wait, 1 to 60.
sincestringOnly 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
sinceit 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 sendStays 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.
GET
https://api.koltrix.com/api/v2/agent-mailboxes/me/wait-for-emailOutput
What comes backThe response appears here.
Press Send request.
Press Send request.