# Register password

Allows a logged-in user to register their first password. Must be authorized using a valid user access token returned upon successful authentication.

Endpoint: POST /v1/users/me/password-credentials
Security: UserAccessToken

## Request fields (application/json):

  - `password` (string, required)
    The user's new password

  - `username` (string)
    The user's new username. This will be the identifier the user will use to authenticate. If username is not provided and the user has verified their email, that email address will be used as the username.

  - `device_id` (string)
    The device associated with this registration.

## Response 200 fields (application/json):

  - `result` (object, required)

  - `result.message` (string, required)
    Example: "Password registered"

## Response 403 fields (application/json):

  - `message` (string, required)

  - `error_code` (number, required)
    Example: 403


