Public
Invites
Accept a team invite (verify code)
SMS-channel invites only: checks the one-time code against the invited mobile. On success the account is created if new (unusable random password, default grower — exactly like phone sign-in), the mobile is marked verified, this role is attached and accepted, any other pending invites for the number are claimed, and the standard first-party Doorkeeper token payload is returned (same shape as POST /users/phone-sessions/verify).
post/invites/{token}/accept
Request
- Base URL: https://api.purplegrain.com/api/v1
- URL: https://api.purplegrain.com/api/v1/invites/{token}/accept
- Auth: none declared
Path parameters
tokenstring required
The invite token from the invite link.
Request body
Response
Invite accepted — Doorkeeper access token; includes user_id.
Example response
{
"token_type": "Bearer"
}Changes
No recorded changes to this operation across all 2 revisions of this API.