# Register New Platform User Account

`POST /api/identity/register`

### Overview
Provisions a new user in the system.

### Authentication & Headers
- **Auth**: Configured tenant registration policy
- **Required Header**: `API-Version: 1`

### Parameters & Request Body
- **`username`** *(string, required)*: Unique handle for login.
- **`email`** *(string, required)*: Valid corporate email address.
- **`password`** *(string, required)*: Strong password (min 8 chars, uppercase, digits).
- **`full_name`** *(string, optional)*: User display name.

## Request body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | string | yes |  |
| `name` | string | yes |  |
| `email` | string | yes |  |
| `phone_number` | string \| null | no |  |
| `password` | string | yes |  |

```json
{
  "username": "string",
  "name": "string",
  "email": "string",
  "phone_number": "string",
  "password": "string"
}
```

## Responses

### 201 — User created successfully

### 422 — Validation Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Example

```bash
curl -X POST "$PINTER_URL/api/identity/register" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username":"string","name":"string","email":"string","phone_number":"string","password":"string"}'
```
