createAccountMutation
createAccount(email: String!, name: String, redirect: String, businessHandle: String): RequestAuthCodeResult!Request an email containing a 6-digit code to confirm a new account. Always returns success regardless of whether the email is already in use (anti-enumeration). If an account already exists for the email, a sign-in code is sent instead.
When businessHandle is set, the issued code is pinned to that business and the resulting token is scoped to it (does not set a cross-account cookie). Used by the business-pinned embed sign-in flow.
When name is set and the email resolves to a brand-new account at redemption time, that name is applied to the inserted user row. Ignored for emails that already have an account.
Arguments
Returns
See RequestAuthCodeResult for the full shape.
Try it
Example
Query
mutation CreateAccount($email: String!, $name: String, $redirect: String, $businessHandle: String) {
createAccount(email: $email, name: $name, redirect: $redirect, businessHandle: $businessHandle) {
__typename
}
}
Variables
{}
POST
https://go.sessions.website/api/graphqlcreateAccount