Public
Join links
Join the business (verify the code)
Checks the one-time code against the mobile. On success the account is created if new (unusable random password, default grower — exactly like an SMS invite or phone sign-in), the mobile is marked verified, and the person becomes a member at the link's role. An existing account on that number is signed in and added straight away; someone who is already a member is left exactly as they were (a link never changes a role), and a pending invitation they held is accepted. Returns the standard first-party Doorkeeper token payload (same shape as POST /users/phone-sessions/verify).
post/join/{join_code}/accept
Request
- Base URL: https://api.purplegrain.com/api/v1
- URL: https://api.purplegrain.com/api/v1/join/{join_code}/accept
- Auth: none declared
Path parameters
join_codestring required
The code from the join link.
Request body
Response
Joined — Doorkeeper access token; includes user_id.
Example response
{
"token_type": "Bearer"
}Changes
No recorded changes to this operation across all 1 revision of this API.