Twilio · api · fg-0168

Verify check returns 404 'was not found' when the code was already approved or has expired

If you see HTTP 404 from verificationChecks.create with a valid Service SID, the cause and the fix for Twilio are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
HTTP 404 from verificationChecks.create with a valid Service SIDA second check of the same code fails after the first one succeededChecks fail when the user enters the code after 10 minutes
Cause
Twilio deletes a verification once it is approved, expires after 10 minutes, or reaches the maximum check attempts, so any later check finds nothing.
Fix
Treat a 404 from a check as used or expired, and start a new verification. Do not check twice on retry.
Apply
try { const check = await client.verify.v2.services(serviceSid).verificationChecks.create({ to, code }); } catch (err) { if (err.status === 404) return { ok: false, reason: 'expired_or_used' }; throw err; }
Affected
Twilio Verify v2, checked October 2026
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun