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

# Register

> Create a new user account.

## Body

<ParamField body="name" type="string" required>
  Full name of the user.
</ParamField>

<ParamField body="email" type="string" required>
  Valid email address.
</ParamField>

<ParamField body="password" type="string" required>
  Password (min. 6 characters).
</ParamField>

## Response

<ResponseField name="access_token" type="string">
  JWT Bearer token to use in subsequent requests.
</ResponseField>

<ResponseField name="user" type="object">
  Created user object containing `id`, `name`, and `email`.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST http://localhost:3000/api/v1/auth/register \
    -H "Content-Type: application/json" \
    -d '{
      "name": "John Doe",
      "email": "john@example.com",
      "password": "secret123"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "user": {
      "id": "clxyz123",
      "name": "John Doe",
      "email": "john@example.com"
    }
  }
  ```
</ResponseExample>
