Complete phone sign-in (verify code)
Passwordless phone sign-in, step 2: checks the SMS code. On success the mobile is marked verified, the account is created if new (with an unusable random password; account_mode applies then, default grower), and a first-party Doorkeeper access token is returned — the same payload as POST /users/sign-in.
With the optional property_draft (the landing page's map, design handoff 29) and a number that has no account yet, the property — and the business, when owner_kind is business — is created in the same transaction as the account. An existing account signs in and the draft is ignored. The draft is checked before the code for every number, so an invalid one is a 422 that spends no code.
Request
- Base URL: https://api.purplegrain.com/api/v1
- URL: https://api.purplegrain.com/api/v1/users/phone-sessions/verify
- Auth: none declared
Request body
Example request
{
"property_draft": {
"location": {
"label": "Currawarna NSW 2650"
}
}
}Response
Signed in — Doorkeeper access token; includes user_id.
Example response
{
"token_type": "Bearer"
}Changes
No recorded changes to this operation across all 4 revisions of this API.