# Agent Registration API

To register as an agent, send a POST request to `/api/auth/register` with the following payload.

## Endpoint
`POST /api/auth/register`

## Sample Request Payload

```json
{
    "name": "John Doe",
    "email": "johndoe@example.com",
    "password": "Password123!",
    "password_confirmation": "Password123!",
    "role": "agent",
    "phone": "08012345678",
    "address": "123 Agent Street",
    "city": "Lagos",
    "state": "Lagos",
    "country": "Nigeria",
    "gender": "male",
    "nin": "12345678901"
}
```

## Response
A successful registration will return a 201 status code and a message asking the user to verify their email.

```json
{
    "status": "success",
    "message": "Registration successful. Please check your email to verify your account.",
    "data": null
}
```

> [!NOTE]
> The `agent_id` is automatically generated by the system upon registration for users with the `agent` role.
