Verify the emailed password reset code
const url = 'https://api.flotera.com/api/v1/auth/password-reset/verify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","code":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.flotera.com/api/v1/auth/password-reset/verify \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "code": "example" }'Exchanges a correct reset code for a single-use ticket for
POST /auth/password-reset/complete. Same code lifetime, attempt
budget, rate limits and uniform 401 as POST /auth/signup/verify.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The 6-digit code from the email.
Examplegenerated
{ "email": "hello@example.com", "code": "example"}Responses
Section titled “Responses”Code accepted; single-use ticket for the final step.
object
Single-use, purpose-scoped ticket for the flow’s complete operation; expires 10 minutes after verify.
Examplegenerated
{ "ticket": "example"}Wrong, expired or exhausted code (code=unauthorized) — request a new one with POST /auth/password-reset/start.
RFC 9457 problem document with a stable machine code.
object
Stable machine-readable error code (03 §2.4).
UUID (v7 for new entities; v4 accepted during migration).
object
JSON Pointer to the offending field.
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}Request failed validation (code=validation_failed), with per-field errors.
RFC 9457 problem document with a stable machine code.
object
Stable machine-readable error code (03 §2.4).
UUID (v7 for new entities; v4 accepted during migration).
object
JSON Pointer to the offending field.
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}Rate limit exceeded (code=rate_limited).
RFC 9457 problem document with a stable machine code.
object
Stable machine-readable error code (03 §2.4).
UUID (v7 for new entities; v4 accepted during migration).
object
JSON Pointer to the offending field.
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}Headers
Section titled “Headers”Seconds to wait before retrying.