> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/user-operations/account-apis/registering-new-account.md).

# Registering new account

### REGISTERING NEW ACCOUNT

## Registers a new user account

<mark style="color:green;">`POST`</mark> `/accounts/register`

#### Request Body

| Name                                       | Type   | Description                                 |
| ------------------------------------------ | ------ | ------------------------------------------- |
| username<mark style="color:red;">\*</mark> | string | An object that contains the username field  |
| password<mark style="color:red;">\*</mark> | string | An object that contains the password field  |
| tenantId                                   | string | An object that contains the tenant ID field |

{% tabs %}
{% tab title="201: Created Successful Operation" %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
}
```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
