> For the complete documentation index, see [llms.txt](https://docs.userlane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.userlane.com/developers/analytics-api/getting-started-with-enduser-events.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Getting started with Enduser events

All requests go to `https://api.userlane.com/analytics`. For pagination, sorting, empty values, and errors that apply to every Analytics API endpoint, see [Using the Analytics API](https://docs.userlane.com/developers/analytics-api/using-the-analytics-api.md).

## Choosing the right endpoint

EndUser Events covers three endpoints, each answering a different question:

| Endpoint           | Returns                                                                         | Use it when you want to know                                                                  |
| ------------------ | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| Guides API         | Raw events: `guideStarted`, `guideFinished`, `guideExited` (with drop-off step) | When and where users engage with step-by-step guides, including exact drop-off points         |
| Announcement API   | Raw events: `announcementViewed`, `announcementInteracted`                      | Who saw an in-app message and who clicked through                                             |
| Guide Progress API | Per-user completion state for a specific guide, plus aggregate stats            | The current "where are users today" snapshot for onboarding, including completion percentages |

**Rule of thumb:** Use Guides and Announcements for **event-level analysis** (timestamps, drop-offs, replays). Use Guide Progress for **state-level dashboards** (completion rates, headline KPIs).

## Common shape

All three endpoints share the same basic conventions:

* **Authentication:** Bearer Token (generate under **Settings > API Token** in the Userlane Portal)
* **Pagination:** 1,000 records per page by default, 5,000 at most (set with `limit`)
* **Pull cadence:** Once every 24 hours recommended; more frequent pulls won't return fresher data
* **Event retention:** Events are accessible for 60 days after creation
* **Join key:** Every record returns `user.id` (Userlane ID) and `user.applicationUserId` (your client-side identifier)

Each endpoint page covers parameters, response shape, and limits in full.

## Enriching with user attributes

`user.applicationUserId` is the join key back to your own user system. To answer segment-level questions (engagement by role, region, licence type), join event data with your customer data warehouse on `applicationUserId`. To enrich with Userlane-side attributes (first seen, last seen, custom attributes), use the [Enduser data API](https://github.com/Userlane/developer-docs/tree/main/docs/core-api/getting-started-with-user-data.md) (Core API)

To correlate engagement with feature adoption or sentiment, join event data with the Tags, Survey or NPS API.

## Next steps

Pick the endpoint that matches what you want to measure:

* [Getting started with Guide events](https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-events.md): start, finish, and exit events with the drop-off step
* [Getting started with Announcement events](https://docs.userlane.com/developers/analytics-api/getting-started-with-announcement-events.md): view and interaction events
* [Getting started with Guide progress](https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-progress.md): a per-user completion snapshot


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.userlane.com/developers/analytics-api/getting-started-with-enduser-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
