| Integration option | Pick this when | Evidence to require before committing |
|---|---|---|
| Submit SMS and poll its status | Your marketplace needs outbound requests only, with no delivery webhook | A documented status lookup, stable message identifiers, and explicit status meanings |
| Submit SMS and consume delivery callbacks | Your team can operate an inbound event handler | Authentication instructions, retry behavior, and a way to reconcile missing events |
| Send a reset link by email | Your account recovery policy permits email and the account has a suitable recovery address | Token lifecycle controls and a separate plan for sender authentication |
TL;DR: For a marketplace password reset with a short expiry, choose the smallest integration that can expose submission uncertainty and stop tracking at the recovery deadline. If delivery webhooks are excluded, require documented status polling before choosing an SMS API. Then measure how much usable lifetime remains after submission. A delivery label alone cannot establish that the account holder completed recovery.
The useful comparison for US and EU transactional notifications starts with evidence, not a price ranking. Which candidate exposes the states your application needs? How much application code must translate them? Can the same contract be checked for each destination you actually support? Treat cross-border account verification and password recovery as separate security decisions, even if they share a messaging adapter.
How should an SMS alerts service expose transactional notifications API status?
Start with the recovery deadline. OWASP's Forgot Password Cheat Sheet calls for reset tokens that expire after an appropriate period, are single use, and are stored securely. It also recommends consistent responses for existing and nonexistent accounts and controls against excessive requests. Those requirements give the messaging dashboard a useful job: explain where the available recovery time went without becoming an account enumeration tool.
Keep three observations separate: submission accepted, delivery status reported, reset token redeemed. They answer different questions. In this design, a positive transport status never authorizes a password change; the recovery service validates the token independently. An unavailable delivery result never extends its expiry either. This separation also keeps a support dashboard from labeling a password reset “successful” merely because an outbound request returned an identifier.
Time keeps moving.
For a worked example, choose a five-minute token lifetime and a ten-second observation interval. These are illustrative application settings, not a security standard or a claimed service guarantee. They create a concrete review question: if a submission is accepted with only 20 seconds left, should the application send it? Set a minimum remaining lifetime in the recovery policy, then check it before submission. Polling later cannot repair that decision.
Diagram in words: recovery request → token creation and expiry → outbound submission → status observations until the deadline. Token redemption branches from the user's reset link back to the recovery service. It does not pass through the delivery monitor.
Pick polling when outbound access is the constraint
For the no-webhook requirement, compare SMS candidates by the work needed to implement that diagram. Ask for a documented lookup operation and the exact meaning of every returned state. Check whether a missing record, an unknown state, and a failed lookup can be distinguished. Require evidence for the particular US and EU destinations under consideration; this note does not establish any service's regional coverage or registration requirements.
The important trap is a submission whose outcome is unknown.
A local timeout does not provide enough evidence to classify that attempt as rejected. Model that uncertainty explicitly. Before enabling automatic resubmission, establish the candidate's documented deduplication or reconciliation behavior. Otherwise, route the attempt into an unresolved state and keep the public recovery response consistent. The integration effort includes this path, even if the happy path is one request. Consider a deliberately constructed test: submission starts with 25 seconds left, the request times out, and a second worker picks up the job. That worker needs a stored record of the unresolved attempt, the original expiry, and the applicable reconciliation policy. Giving it only the recipient and message body leaves it without the evidence needed to decide whether another submission is permitted. Test that handoff before enabling background retries.
Polling adds a scheduler, a deadline, and a status translator. Count those as implementation work. Under the example schedule, a full five-minute observation window contains 30 ten-second slots; that arithmetic is a scheduling budget, not a measured API load. Early termination, request latency, and the number of active resets determine what the application actually does. Estimate that workload before comparing commercial terms. Avoid designing the recovery flow around a quoted unit price.
Pick callbacks when event handling already has an owner
Use callbacks as a candidate option when your team already operates authenticated inbound handlers and can test the sender's documented event behavior. Review duplicate handling and reconciliation before calling the integration finished. Require evidence of authentication, retry rules, and event meanings rather than assuming all APIs share a contract.
This option does not satisfy a strict no-webhook constraint.
Keep it in the decision table so that a future change in operational ownership has an explicit evaluation path. The token deadline remains the same application responsibility.
Pick email when recovery policy permits that channel
Email is a separate recovery-channel choice, not an automatic fallback after an ambiguous SMS submission. Decide which address is eligible and how a new recovery request affects previous tokens. OWASP describes reset links and recommends that tokens be single use and expire; apply those controls regardless of how the link reaches the user.
Sender authentication deserves its own check. RFC 7208 defines SPF authorization for hosts using domains in SMTP identities. That scope does not establish that a reset link was read or redeemed. Keep sender authentication, transport observations, and recovery completion as separate evidence in the operational note.
Implement the deadline before the dashboard
Here is the focused implementation: a TypeScript status observer for a message that already has an identifier. It makes no network assumptions. A separately reviewed adapter supplies the documented lookup, translates external states, and enforces a request timeout using the remaining budget. Unknown external states map to unknown; lookup errors remain errors. That distinction makes the monitor teachable and testable!
The clock and waiting function are injected so a test can advance time without waiting five minutes. expiresAtMs comes from the recovery service. It is never calculated from the first delivery observation, and this monitor never submits another message.
type DeliveryState = "pending" | "delivered" | "failed" | "unknown"; type Observation = DeliveryState | "lookup_error" | "deadline_reached"; interface MonitorPorts { nowMs(): number; wait(ms: number): Promise<void>; lookup(messageId: string, budgetMs: number): Promise<DeliveryState>; record(event: { state: Observation; remainingMs: number; }): void; } async function observeResetMessage( messageId: string, expiresAtMs: number, ports: MonitorPorts, ): Promise<"delivered" | "failed" | "deadline_reached"> { const intervalMs = 10_000; while (ports.nowMs() < expiresAtMs) { const remainingMs = expiresAtMs - ports.nowMs(); if (remainingMs <= 0) break; let state: Observation; try { state = await ports.lookup( messageId, Math.min(intervalMs, remainingMs), ); } catch { state = "lookup_error"; } const afterLookupMs = Math.max(0, expiresAtMs - ports.nowMs()); if (afterLookupMs === 0) break; ports.record({ state, remainingMs: afterLookupMs }); if (state === "delivered" || state === "failed") return state; await ports.wait(Math.min(intervalMs, afterLookupMs)); } ports.record({ state: "deadline_reached", remainingMs: 0 }); return "deadline_reached"; } The boundary is deliberate: deadline_reached means monitoring stopped at the application deadline. It makes no claim about eventual transport delivery. Even a delivered return leaves token validity and redemption to the recovery service. A lookup that finishes after expiry is discarded here because the monitor's purpose is observing the usable recovery window; if later transport reconciliation is required, give that work a separate retention policy and owner.
Before: one “message sent” counter that obscures unresolved submissions. After: separate counts for submission acceptance, unresolved submission, lookup errors, transport outcomes, and tokens redeemed before expiry. Use a histogram for remaining lifetime at acceptance. Keep metric dimensions bounded, such as channel and normalized state. Put correlation identifiers in access-controlled diagnostic records; exclude reset tokens and full recipient addresses from this monitor's telemetry. OWASP explicitly calls for secure token storage, and the observer has no reason to receive the token in the first place.
Test the boundaries that change the recovery outcome: an already expired deadline, a lookup that crosses expiry, repeated lookup errors, an unknown transport state, and early delivery. Test token reuse and account enumeration responses in the recovery service. During deployment, confirm that one scheduled task owns each observation attempt and that a restart resumes from the stored expiry rather than granting a fresh five-minute window. For concurrent resets, add a shared concurrency limit and a documented rate-limit policy around the adapter; the single-message loop above does not supply either.
An alert should name an action.
A rising unresolved-submission count calls for inspecting submission reconciliation. Lookup errors call for inspecting the status adapter. Unusually little lifetime remaining at acceptance calls for inspecting work before submission. Set thresholds from your recovery objective and observed workload; there is no measured baseline here from which to invent them.
Limits to keep in the engineering note
The main trade-off is application ownership: polling avoids an inbound handler but requires scheduled lookups and durable state. This observer does not support crash recovery or distributed scheduling by itself. It assumes a stored message identifier and an adapter whose documented behavior has been checked. Without a queryable status contract, polling cannot answer the delivery question; record that limitation during selection instead of inventing a status. If operating a polling scheduler is unsuitable for the team, evaluate callbacks when inbound handling is permitted, or an eligible email recovery flow when the recovery policy allows it.
Short expiry also limits the operational value of late transport evidence. Preserve the distinction between a valid recovery action and a reported delivery, document the unresolved path, and assign ownership for the deadline. Those decisions make integration effort reviewable before a marketplace depends on the flow.
References
- OWASP Forgot Password Cheat Sheet — token expiry, single use, consistent responses, and request controls: https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html
- RFC 7208, Sender Policy Framework — SMTP sender authorization and its scope: https://datatracker.ietf.org/doc/html/rfc7208