# User Season List

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

**Deprecated:** still answers, but will not receive further work. Prefer another endpoint.

**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 season 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:
- **sids**: List of season identifiers representing the seasons in which the player has participated or has tracked statistics.

This endpoint is useful for:
- Displaying season history.
- Linking performance data to specific seasons.
- Enabling clients to fetch season-specific stats or achievements.

## Request

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

### 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/season' \
  -H 'Authorization: Bearer <jwt>'
```

## Example response

```json
{
  "code": 0,
  "message": "Success",
  "traceID": "74879d32961c1784a762671398979ac6",
  "data": {
    "sids": [
      40,
      39,
      38,
      37
    ]
  }
}
```

## Links

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