# User Info

> `GET /api/user/info`: User endpoint of the Rone Arena API.

**Sign-in required:** send `Authorization: Bearer <jwt>`. Get the JWT from `POST /api/user/auth/send-vc` then `POST /api/user/auth/login`.

Retrieve the authenticated player's base profile information using a valid JWT. Supports query parameter for localization (`lang`). Requires an Authorization header with the JWT from login.

Headers:
- **Authorization**: `Bearer <jwt>` (JWT obtained during login).

Query parameters:
- **lang**: Language code for localized content (default: `en`).

The response includes player details:
- **avatar**: Avatar image URL.
- **name**: Display name.
- **level**: Current player level.
- **rank_level**: Current rank level.
- **history_rank_level**: Highest historical rank level.
- **reg_country**: Registered country code.
- **roleId**: Player role identifier.
- **zoneId**: Server zone identifier.

Useful for displaying identity card information, verifying account ownership, and populating player profile data in client applications.

## Request

`GET https://arena.rone.dev/api/user/info`

### Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `lang` | query | string | no | `en` | Language code for localized content. One of: `en`, `id`, `ru`, `es`, `pt`, `tr`, `ar`, `de`, `fr`, `it`, `ja`, `ko`, `th`, `vi`, `zh-CN`, `zh-TW`, `km`. |

### Example

```bash
curl -X GET 'https://arena.rone.dev/api/user/info' \
  -H 'Authorization: Bearer <jwt>'
```

## Example response

```json
{
  "code": 0,
  "data": {
    "avatar": "https://wsrv.nl/?url=https%3A%2F%2Fakmpicture.youngjoygame.com%2Fdist%2Fface%2F57060%2F66%2F96%2F1149309666_26_new_9ced56d6-3625-48c3-85d1-0b862a2044e7.jpg",
    "history_rank_level": 9999,
    "level": 200,
    "name": "SAYA AKAN LAWAN",
    "rank_level": 8000,
    "reg_country": "ID",
    "roleId": 1234567890,
    "zoneId": 123456
  },
  "msg": "ok"
}
```

## Links

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