Keep the password-reset expiry promise under application control, and evaluate an SMS alerts API by whether its polling evidence can be joined to the template revision used for each send. For a B2B SaaS application, the deciding constraint is template ownership: support needs the message's original promise even after an editor publishes new wording.
TL;DR: Build a small evidence ledger before choosing a sender. Attach the approved template revision and application deadline to the send record. Add delivery status polling observations without a webhook. Then make the support view expose missing evidence, stale observations, and expired resets as distinct conditions. Apply that same evidence requirement to the intended US and EU destination configurations.
Before: “delivered” is the only useful field on the screen. After: support can explain which copy was selected, how recently transport status was checked, and whether the application deadline has passed. Three different questions. One delivery badge cannot answer all three.
This walkthrough uses a short-lived password reset, rather than an education attendance alert, because an expiry promise makes template ownership observable. The numbers below are invented fixture inputs, not measured delivery times or a recommended recovery policy.
Step 1: Decide what a support answer must prove
Start with a support question: “The reset message arrived, but can this link still work?” The answer needs an application deadline and current application state. A delivery receipt alone cannot establish credential validity. A second question follows: “What did our message actually promise?” That requires the original rendered copy or independently verifiable template evidence, rather than whatever text the editor displays today.
This changes the selection exercise. Ask each candidate integration to preserve a join between its message identifier and your send record, and to expose status through a documented lookup operation. For template ownership, examine whether the application supplies the rendered body or selects a reproducible hosted revision. These are evaluation requirements, not claims that every API offers those capabilities.
Draw the system in words: approved copy → application send record → transport message identifier → scheduled status lookup → observation ledger → support projection. The reset deadline enters the send record directly from the application. It never comes back from the polling loop.
Choose the evidence boundary first.
Application-owned rendering gives the release process a place to review the security sentence alongside the policy. It also makes a copy change depend on that process. Separately managed templates let editors use a different publishing workflow; the integration then needs a way to establish which revision and variables were used. A mutable template name leaves a gap. Treat that gap as an explicit selection criterion, especially if support must explain an older send after publication of a new revision.
For this copyable experiment, the application renders the expiry sentence. The fixture uses a five-minute lifetime and a request-relative deadline. Neither choice is a universal standard. NIST's cited authentication guidance discusses validity and one-time use within its specified authentication flows; it does not establish this example's password-recovery timeout.
Step 2: Build the ledger and expose its blind spots
Save this example as a TypeScript file and run it with your project's TypeScript runner. It uses no external dependencies or network calls. The three numbered operations form one runnable example: capture the send, append observations, and derive a support answer. The reset address is a placeholder, and no usable credential is created.
type Receipt = "pending" | "delivered" | "failed";
type SendRecord = {
messageId: string;
templateRevision: string;
expiresAt: number;
};
type Observation =
| { kind: "receipt"; checkedAt: number; status: Receipt }
| { kind: "lookup_error"; checkedAt: number };
// Step 1: Capture application-owned copy at the send boundary.
const requestedAt = 0;
const lifetimeMs = 5 * 60_000;
const templateRevision = "reset-copy-r7";
const renderedBody =
"Reset your password using the account recovery link. " +
`Expires ${lifetimeMs / 60_000} minutes after your request.`;
if (!renderedBody.endsWith("Expires 5 minutes after your request.")) {
throw new Error("Rendered security sentence changed");
}
const sent: SendRecord = {
messageId: "fixture-message-01",
templateRevision,
expiresAt: requestedAt + lifetimeMs,
};
// Step 2: Append fixture lookup results without rewriting history.
const observations: Observation[] = [
{ kind: "receipt", checkedAt: 20_000, status: "pending" },
{ kind: "lookup_error", checkedAt: 40_000 },
{ kind: "receipt", checkedAt: 310_000, status: "delivered" },
];
// Step 3: Project evidence available at a given observation time.
function supportAt(now: number) {
let latestReceipt:
| Extract<Observation, { kind: "receipt" }>
| undefined;
let lastAttemptAt: number | undefined;
let lookupErrors = 0;
for (const event of observations) {
if (event.checkedAt > now) continue;
lastAttemptAt = Math.max(lastAttemptAt ?? 0, event.checkedAt);
if (event.kind === "lookup_error") {
lookupErrors += 1;
} else if (
!latestReceipt || event.checkedAt >= latestReceipt.checkedAt
) {
latestReceipt = event;
}
}
return {
templateRevision: sent.templateRevision,
receipt: latestReceipt?.status ?? "unobserved",
lastSuccessfulCheckAt: latestReceipt?.checkedAt ?? null,
observationAgeMs: latestReceipt ? now - latestReceipt.checkedAt : null,
lastAttemptAt: lastAttemptAt ?? null,
lookupErrors,
deadlinePassed: now >= sent.expiresAt,
};
}
const duringLookupFailure = supportAt(40_000);
if (duringLookupFailure.receipt !== "pending") {
throw new Error("Lookup failure overwrote receipt evidence");
}
if (duringLookupFailure.observationAgeMs !== 20_000) {
throw new Error("Failed lookup refreshed the evidence timestamp");
}
const afterDeadline = supportAt(310_000);
if (!afterDeadline.deadlinePassed || afterDeadline.receipt !== "delivered") {
throw new Error("Transport observation changed the application deadline");
}
console.log({ duringLookupFailure, afterDeadline });
Look at the timestamps. At 40 seconds, the most recent attempt failed, but the last receipt remains pending and is 20 seconds old. At 310 seconds, the ledger observes delivered while the five-minute deadline has already passed. That timestamp records when this fixture checked the status. It cannot tell us when the recipient received the message.
Keep that distinction visible.
The trap is refreshing a “last updated” field after every polling attempt. A failed lookup can then make old evidence look fresh, even though nothing new was learned about delivery. The example preserves successful-check time separately from attempt time. It also keeps the template revision fixed on the send record; a later publication should not relabel earlier evidence.
There is a boundary to this demonstration. The ledger proves its own bookkeeping. It does not prove that an external transport sent the rendered text, and deadlinePassed: false does not prove a credential remains usable: it might already have been redeemed or revoked. A production support view must consult authoritative application state for those conditions. Never infer “safe to use” from this example's deadline field.
For deployment, replace the fixture observations with a small adapter around the selected API's documented lookup behavior. Persist send records and observations, map documented receipt states deliberately, and establish the identity of the revision used at send time. Test those properties with authorized recipients for the US and EU configurations you actually intend to support. A successful test for one configuration supplies no evidence about another.
How should a SaaS app expose SMS alerts API polling status?
Yes. Show the age.
Without a webhook, freshness depends on the lookup schedule and successful responses. Choose bounded polling using the application's expiry policy, the API's documented limits, and the support team's evidence needs. Backoff and jitter are proposed scheduling choices for transient lookup failures. Preserve the last successful observation while retries run. A later reconciliation window can collect additional evidence without extending a reset deadline.
Keep the alert vocabulary small and precise. Track send-acceptance failures, lookup errors, observation age, and receipts first observed after expiry separately. The last category describes observation timing; calling it “late handset delivery” would require delivery-time evidence the fixture does not have. Alert thresholds should come from the application's operating goals, rather than from the five-minute example.
Template ownership belongs in this telemetry too. Retain the revision and diagnostic message identifier in access-controlled records so a responder can trace an individual send. Avoid phone numbers, credentials, and full reset links in routine logs. Prefer aggregate metric labels that describe outcomes; a unique identifier per send belongs in diagnostic evidence. Otherwise, the dashboard becomes a collection of individual messages instead of an explanation of the workflow.
There is operational work here. Scheduled lookups consume resources, and someone must maintain the state mapping as the integration changes. Polling removes the need for an inbound callback endpoint, while introducing intervals during which new receipt information is unavailable. Compare those responsibilities with your team's actual support requirements. The trade-off is less inbound infrastructure in exchange for scheduled work and stale observations. This approach is not a good fit if the application needs fresher evidence than its permitted lookup schedule can provide. In that case, evaluate a documented event-driven integration against that requirement, while retaining the application deadline and template evidence. Its limitation is that changing the transport observation mechanism still cannot prove credential validity or reconstruct missing editorial history.
Price needn't settle that decision.
Can editors own the template without owning the reset policy?
They can, provided the editing boundary is explicit. Give editors control of reviewed wording while keeping the deadline authoritative in the application. Generating the expiry sentence from policy fields narrows editorial freedom and makes the promise testable. Free-form expiry wording permits more expression, but requires review of the rendered sentence and its time anchor; metadata equality alone cannot validate independently editable prose.
For a rollout, publish an attributable revision, verify a rendered sample, and keep the evidence needed to explain sends made before the next edit.
Don't rewrite history.
If you roll back copy, earlier sends should retain their original revision. The acceptance question is whether your workflow can establish that history, not how many editing controls appear in a dashboard.
An email fallback deserves a separate channel review. RFC 7489 specifies DMARC for domain-based email authentication and policy. It does not define SMS receipt meanings or validate a password-reset credential. Keep email authentication evidence, transport observations, and application recovery state distinct when presenting the result to support.
The useful finish line is an explainable support answer: this send selected this approved copy, this is the latest successful transport observation, and the application owns whether the reset can still be redeemed. Choose template ownership around your ability to maintain that answer through edits and deployments. Then keep the ledger honest about what it cannot prove.
References
- NIST SP 800-63B, Digital Identity Guidelines: Authentication and Lifecycle Management: https://pages.nist.gov/800-63-3/sp800-63b.html
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance (DMARC): https://datatracker.ietf.org/doc/html/rfc7489
Top comments (0)