Arguments
Returns
RegisterUserResponse — represents the response returned from the registerUser mutation.
Errors
This mutation does not return GraphQL errors for business failures. Every failure comes back as HTTP200withsuccess: falseand a populatederrorobject holdingmessageandcode. Only authentication-middleware and rate-limit failures are rejected before the resolver runs and surface as HTTP errors.
error.code, never on error.message — messages are prose and may be reworded, while codes are stable. The tables below list every code this mutation can return. Error name is the internal name for the code; it is not part of the response, and is shown only so support requests and log lines can be matched up.
Application and credential errors
Nothing was created. These indicate a problem with the calling application or its token, and will recur identically until the application setup changes.AUTH-0022 means registration has not been enabled for your application. Contact Fluz support rather than retrying.
Input errors
Nothing was created. Fix the input and call again.
The
ARG-0002 message lists only the fields that were actually absent, and agrees in number (is required / are required). The ARG-0001 validation message appends the specific field errors, so read message for the detail even though you branch on code.
Conflicts
Nothing was created. The email address or phone number already belongs to a Fluz user.
Safe to retry with different values. Neither creates a partial user.
Registration failures
Registration could not be completed. Every case below returns the single codeAUTH-0025 (UnsuccessfulRegistration) — the message is what distinguishes them.
AUTH-0025 is retryable, but it does not tell you whether the user was created — some stages run after the user and account already exist. Retry the same call, and treat the outcome as the answer:
- Success means registration completed and the returned
userIdis the user to use. AUTH-0027orAUTH-0026means an earlier attempt already created the user; look it up by email address or phone number instead of registering again.- The same
AUTH-0025message repeating means the failure is not transient. Contact Fluz support and quote the message text — it identifies the stage that failed.