---
title: Authentication
url: https://docs.kaltura.com/docs/events-collaboration/user-profile-api/user-profile-authentication
---

## Authentication

All `user-profile/*` endpoints require an ADMIN KS (type=2) with `ADMIN_BASE` permission:

```
Authorization: Bearer <your_kaltura_session>
```

The `reports/eventDataStats` endpoint accepts KS with either `ANALYTICS_BASE` or `EP_USER_ANALYTICS` permission.

Generate an ADMIN KS via `session.start` (see [Session Guide](/docs/getting-started/authentication/ks-overview)) or `appToken.startSession` (see [AppTokens Guide](/docs/getting-started/authentication/app-tokens-overview)).

```bash
# Set up environment
export KALTURA_USER_PROFILE_URL="https://user.nvp1.ovp.kaltura.com/api/v1"
```
