- Log in to your DHIS2 instance
- Click your username (top-right) → Profile
- Scroll to Personal access tokens section
- Click Generate new token
- Name it (e.g. "Insight Analytics"), set expiry, ensure Read permissions are checked
- Click Generate — copy the token immediately (it starts with
d2pat_)
- Paste it in the Personal Access Token field above
Note: PAT requires DHIS2 version 2.36 or later. For older versions, use Password authentication instead.
Security: Your token is sent directly to your DHIS2 server. It is never stored on the Insight engine — only used for the current session.