mutation

registerWithForm

Enable new users to register using a form.
Arguments
formRegisterRequestSchemaInput
FormRegisterRequestSchemaInput
Describes the request structure to register new user.
platform
String
ID of the application.
Response
country_code
String
The country specific prefix for the phone number.
email
String
The email address provided during registration.
message
String
A string containing additional information about the operation's result.
mobile
String
The user's phone mobile without the country code.
register_token
String
A token used for completing the registration process.
request_id
String
A random uuid string used to track the registration response.
resend_email_token
String
A token used to authorize the resending of an OTP via email.
resend_timer
Int
The time in seconds before an OTP can be resent.
resend_token
String
A token used to authorize the resending of an OTP.
success
Boolean
A boolean value indicating whether the registration operation was successful.
user_exists
Boolean
Whether the user already exists.
verify_email_otp
Boolean
Whether email OTP verification is required.
verify_mobile_otp
Boolean
Whether mobile OTP verification is required.
Mutation
1mutation registerWithForm(
2 $formRegisterRequestSchemaInput: FormRegisterRequestSchemaInput
3 $platform: String
4) {
5 registerWithForm(
6 formRegisterRequestSchemaInput: $formRegisterRequestSchemaInput
7 platform: $platform
8 ) {
9 country_code
10 email
11 message
12 mobile
13 register_token
14 request_id
15 resend_email_token
16 resend_timer
17 resend_token
18 success
19 user_exists
20 verify_email_otp
21 verify_mobile_otp
22 }
23}
Try it
Input Variables
1{
2 "formRegisterRequestSchemaInput": {
3 "email": "test-email@yourcompany.com",
4 "first_name": "first_name",
5 "gender": "gender",
6 "last_name": "last_name",
7 "password": "password",
8 "phone": {
9 "country_code": "country_code",
10 "mobile": "mobile"
11 },
12 "register_token": "register_token"
13 },
14 "platform": "platform"
15}
Response
1{
2 "registerWithForm": {
3 "country_code": "country_code",
4 "email": "test-email@yourcompany.com",
5 "message": "message",
6 "mobile": "mobile",
7 "register_token": "register_token",
8 "request_id": "request_id",
9 "resend_email_token": "resend_email_token",
10 "resend_timer": 42,
11 "resend_token": "resend_token",
12 "success": true,
13 "user_exists": true,
14 "verify_email_otp": true,
15 "verify_mobile_otp": true
16 }
17}