# User Privacy Settings

> `GET /api/user/privacy/settings`: 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 privacy settings 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:
- **popup_shown**: Whether the privacy popup has been shown to the user.
- **privacy**: Current privacy state (true/false).

## Request

`GET https://arena.rone.dev/api/user/privacy/settings`

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

## Example response

```json
{
  "code": 0,
  "message": "Success",
  "traceID": "410b98229c4a2ab35edddb49df774922",
  "data": {
    "popup_shown": true,
    "privacy": false
  }
}
```

## Links

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