# Send Verification Code

> `POST /api/user/auth/send-vc`: User endpoint of the Rone Arena API.

Send an in-game verification code to the player's account, valid for 5 mins. This endpoint is part of the authentication flow and is used to validate ownership of a game account.

Request body:
- **role_id**: Player role identifier (Game ID).
- **zone_id**: Server zone identifier (Server ID).

The response confirms whether the verification code was successfully dispatched:
- **code**: Status code (0 indicates success).
- **data**: Empty string (no payload returned).
- **msg**: Message string (e.g., 'ok').

Useful for account authentication flows, linking user identity, and validating account ownership.

## Request

`POST https://arena.rone.dev/api/user/auth/send-vc`

### Request body

`application/json`, required

```json
{
  "role_id": 1234567890,
  "zone_id": 1234
}
```

### Example

```bash
curl -X POST 'https://arena.rone.dev/api/user/auth/send-vc' \
  -H 'Content-Type: application/json' \
  -d '{"role_id": 1234567890, "zone_id": 1234}'
```

## Example response

```json
{
  "code": 0,
  "data": "",
  "msg": "ok"
}
```

## Links

- Try it in the playground: https://arena.rone.dev/web/user/auth/send-vc
- User endpoints: https://arena.rone.dev/web/user.md
- OpenAPI schema: https://arena.rone.dev/api/openapi.json
