> 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/core-api/getting-started-with-user-data.md). Agents can also search and read this documentation through its [MCP server](https://docs.userlane.com/~gitbook/mcp).

# Getting started with Enduser data

The Enduser API gives you access to user profile data — Userlane's internal user ID, your own user identifier (public ID), and any custom attributes you pass to Userlane — so you can match users across all the other Userlane APIs (Tags, NPS, Surveys, HEART, Guide Progress) and combine them with data you hold in your own systems.

This API is the **join layer** for everything else. The analytics endpoints return `user.id` and `user.applicationUserId` with every event or response, but not the user's attributes or activity dates. This endpoint adds them: join on `user.id`, or on `userlaneId`, which is the same value as `applicationUserId`.

## Endpoint

`GET https://api.userlane.com/v3/applications/{application_id}/users`

The endpoint returns all enabled users of the company that owns the application, not only the users of that application. Users of the company's other applications are included, and so are users with no session in this application. Use `lastSeenAfter` to narrow the list to recently active users.

### Query parameters

| Parameter       | Default | Description                                                                                                                                                    |
| --------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `page`          | `1`     | Page number, starting at 1. Values below 1 are treated as 1.                                                                                                   |
| `limit`         | `1000`  | Users per page, from 1 to 1,000. Values outside that range are clamped to it, so `5000` returns 1,000 users per page.                                          |
| `lastSeenAfter` |         | Only return users last seen at or after this moment. Send it in UTC as `YYYY-MM-DDThh:mm:ssZ`, without fractional seconds, for example `2026-01-31T09:00:00Z`. |

The response contains a `users` list and a `pagination` object with `page`, `limit`, `totalElements`, and `totalPages`.

## What you get

For each user, the API returns:

* **`id`** — Userlane's internal user identifier. This is the join key returned by every other Userlane API (Tags, NPS, Surveys, Guide Progress).
* **`userlaneId`** — Your user ID, as you send it to Userlane: the value you pass to the snippet when you identify the user. If your company identifies users by email, Userlane stores it in lowercase. The Attribute import API calls the same value `publicId`.
* **`applicationAttributes`** — A map of custom attributes you pass to Userlane from your application. Keys are attribute IDs, values can be strings, booleans, or other types depending on what your application sends (e.g. role, department, feature flags, licence type).
* **`companyAttributes`** — Attributes scoped to the company. Only included when the company has the staff training extension; otherwise the field is not in the response.
* **`timeCreated`** — Timestamp for when the user record was first created in Userlane.
* **`firstSeenAt`** — Timestamp for when Userlane first observed the user in your application.
* **`lastSeenAt`** — Timestamp for when Userlane last observed the user in your application.

Attribute keys (e.g. `"1234"`, `"5678"`) are numeric attribute IDs, not the attribute names. The public API does not currently return attribute names, so these endpoints alone cannot tell you which attribute an ID stands for.

## Typical use cases

* **Enrich analytics with user context** — Join Tags, NPS, Survey, or Guide Progress records on `user.id` to add role, region, or department to every row. You need your own mapping from attribute ID to attribute name for this (see above).
* **Bridge to your own systems** — Use `userlaneId` to match Userlane data with your CRM, data warehouse, or product analytics platform.
* **Audit user activation** — Check when users were first seen by Userlane and when they were last active.
* **Build segment-level dashboards** — With user attributes joined in and mapped to their names, slice any other Userlane metric by your own segmentation (e.g. NPS by department, feature adoption by region).

## How the joins work

In practice, this means a typical BI pipeline pulls from two or three Userlane endpoints, joins them on `user.id` via the Enduser API, and then optionally joins with internal customer data on `userlaneId`.

## Authentication

Authenticate with your API token as described in [Authentication](https://docs.userlane.com/developers/authentication.md).

## Next steps

* Try a request from the API reference for `GET /v3/applications/{application_id}/users`
* To enrich feature interaction data, see [Getting started with Tags](https://docs.userlane.com/developers/analytics-api/getting-started-with-tags.md) (Analytics API)
* To enrich sentiment data, see [Getting started with NPS responses](https://docs.userlane.com/developers/analytics-api/getting-started-with-nps-responses.md) and [Getting started with Survey responses](https://docs.userlane.com/developers/analytics-api/getting-started-with-survey-responses.md) (Analytics API)
* To enrich onboarding completion data, see [Getting started with Guide progress](https://docs.userlane.com/developers/analytics-api/getting-started-with-guide-progress.md) (Analytics API)


---

# 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/core-api/getting-started-with-user-data.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.
