Reset a password with an emailed code

posthttps://api.expiryedge.com/v1/verifyCodeAndUpdatePassword
Public - no API key10/15 min
Request
curl -X POST 'https://api.expiryedge.com/v1/verifyCodeAndUpdatePassword' \
  -H "Content-Type: application/json" \
  -d '{
  "email": "sam.lee@northwinddental.com",
  "code": "482915",
  "password": "correct-horse-battery-staple"
}'
Response
{
  "message": "Password updated successfully."
}

The code is single-use and invalidated after a limited number of wrong guesses. Unknown email, wrong, expired or locked code all return the same 400. Password must be 6-256 characters.

Body parameters

application/json
  • emailstringrequired
    format: email
  • codestringrequired
    pattern: ^[0-9]{6}$
  • passwordstringrequired
    min length: 6 · max length: 256

Returns

200
Password updated.
  • messagestringrequired

Errors

400
The request is missing required fields or contains invalid values.
405
The endpoint does not accept this HTTP method.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.