goals

Verify Goal Phone Code

Check the code the athlete typed back; on a match the phone is proven.

Every outcome is a 200 with a name the page can render its own copy for — a wrong code is the athlete mistyping, not an HTTP failure. The store burns an attempt per mismatch and refuses a record out of attempts, so the only move left after attempts_exhausted or expired is requesting a fresh code. The proven phone comes back from the store, not echoed from any request, so what the caller learns is what was verified.

post/goals/phone/verify

Request body

codestring required

Response

Successful Response

outcome'verified' | 'invalid' | 'expired' | 'attempts_exhausted' required
phonestring nullable

Changes

Changed in 1 of the 2 revisions of this API.1