Auth
Identity + session management. One-time-code (OTP) flow over email or SMS; account/community creation. GAT-998 / GAT-1011.
Create a person + identity and send a one-time code to BOTH channels (email AND SMS). Does not create an account or community.
Verify BOTH one-time codes (email + SMS) to finalize signup, or complete a signin re-verification when a token is provided.
Re-send the signup one-time code on a specific channel so the two cards can resend independently.
Send the post-signup welcome email with the 'Set up my community' CTA.
Initiate sign-in with an email address or phone number. Sends a one-time code when the account is fully verified, or returns 409 when contacts still need to be verified.
Verify the sign-in one-time code. Issues a session and returns the landing community.
Return the current session's user, enrollment status, and account/community context.
Revoke the current session and clear the __cc_session cookie.
Create a new account (billing/plan container) and the first community under it. Sends welcome + community-created emails and creates a HubSpot contact.
List the accounts the current session's user belongs to.