Skip to main content

Register a new user with the magic token

Register a new user with the magic token

Request Body REQUIRED
magic_token string
email email
password string
name string

Possible values: length ≤ 32

gender int32
language language
device string

Device id

device_token string

FCM device token

Responses
200
Schema OPTIONAL
server_id string

Server id

token string

Access token

refresh_token string

Refresh token

expired_in int64

The access token expired in seconds

user object

User info

uid int64
email string OPTIONAL
name string
gender int32
language language
is_admin boolean
is_bot boolean
avatar_updated_at timestamp
create_by string
409
Schema OPTIONAL
reason string

Possible values: [name_conflict, email_conflict]

412

Magic token has been expired.

413