> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new user

> Create a new user in a database connection using their credentials.

## Endpoint

`POST /dbconnections/signup`

Given a user's credentials and a `connection`, this endpoint creates a new user.

This endpoint only works for database connections.

### Remarks

* The sample auth0.js script uses the library version 8. If you are using auth0.js version 7, please see this [reference guide](https://auth0.com/docs/libraries/auth0js/v7).

### Learn More

* [Password Strength in Auth0 Database Connections](https://auth0.com/docs/authenticate/database-connections/password-strength)
* [Password Options in Auth0 Database Connections](https://auth0.com/docs/authenticate/database-connections/password-options)
* [Adding Username for Database Connections](https://auth0.com/docs/authenticate/database-connections/require-username)
* [Metadata Overview](https://auth0.com/docs/manage-users/user-accounts/metadata)

## Body Parameters

**client\_id** `string`

The `client_id` of your client. If omitted, the request falls back to the tenant's global client ID.

**email** `string`

The user's email address.

**password** `string` *required*

The user's desired password.

**phone\_number** `string`

The user's phone number.

**connection** `string` *required*

The name of the database configured to your client.

**username** `string`

The user's username. Only valid if the connection requires a username.

**given\_name** `string`

The user's given name(s).

**family\_name** `string`

The user's family name(s).

**name** `string`

The user's full name.

**nickname** `string`

The user's nickname.

**picture** `string`

A URI pointing to the user's picture.

**user\_metadata** `object`

The user metadata to be associated with the user. If set, the field must be an object containing no more than ten properties. Property names can have a maximum of 100 characters, and property values must be strings of no more than 500 characters.

## Response Schema

\{}

application/json

**\_id** `string`

The user's unique identifier.

**email\_verified** `boolean`

Indicates whether the user's email address is verified.

**email** `string`

The user's email address.

**username** `string`

The user's username.

**given\_name** `string`

The user's given name.

**family\_name** `string`

The user's family name.

**name** `string`

The user's full name.

**nickname** `string`

The user's nickname.

**picture** `string`

A URI pointing to the user's picture.

## Response Messages

| Status | Description |
| - | - |
| 200 | User successfully created |
| 400 | Bad request, missing or invalid parameters. |
| 409 | Conflict, user already exists. |
