Skip to main content

Register

POST 

/v1/auth/account-registration

Register

This endpoint allows users to register a new account by providing their email, nickname, device identifier, and hashed password. Upon successful registration, it returns a UserSessionResponse object containing user details along with access and refresh tokens. This endpoint supports POST requests and handles errors gracefully, returning appropriate HTTP status codes for invalid inputs or unexpected server issues.

Request

Body

required
    device stringrequired
    email stringrequired
    nickname stringrequired
    passwordHash stringrequired

Responses

User registered

Schema
    accessToken stringrequired
    createdAt date-timerequired
    device stringrequired
    deviceCreatedAt date-timerequired
    email stringrequired
    hpkePubKey binarynullable
    id uuidrequired
    lastLogin date-timenullable
    lastTransaction date-timenullable
    nickname stringrequired
    refreshToken stringrequired
    status stringrequired
Loading...