> ## Documentation Index
> Fetch the complete documentation index at: https://developers.entri.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Entri Unify Events

> Browser events and webhook notifications fired during the Unify flow.

## Overview

Entri Unify fires one new browser event for the path-selection step, then hands off to the Connect or Sell flow, which fires its existing events for the rest of the session. On the backend, Unify does not introduce a new webhook payload. The flow the user selects sends the same Connect or Sell webhooks you already handle.

## `onEntriPathSelected` Event

When the user chooses between buying a new domain and connecting an existing one, Unify fires `onEntriPathSelected`. Use it to track which path your users take or to update your own UI before the underlying flow opens.

#### Sample usage:

```JavaScript JavaScript theme={null}
function handleOnEntriPathSelected(event) {
  console.log('onEntriPathSelected', event.detail);
}
window.addEventListener('onEntriPathSelected', handleOnEntriPathSelected, false);
```

#### Sample `event.detail` object response:

```JSON JSON theme={null}
{
  "path": "connect",
  "domain": "example.com",
  "user": "user-123456"
}
```

#### Event details object description

| Name   | Type   | Description                                                                            |
| ------ | ------ | -------------------------------------------------------------------------------------- |
| path   | string | Which path the user chose: `"sell"` or `"connect"`.                                    |
| domain | string | Domain the user entered, if collected before selection. Can be null.                   |
| user   | string | The `userId` sent over the initial configuration. Helpful for mapping users vs. flows. |

## Flow events

After the path is selected, all subsequent browser events come from the chosen flow:

For the connect path, listen for the [Entri Connect events](/connect/events).

For the sell path, listen for the [Entri Sell events](/sell/events).

<Note>
  Because Unify reuses these events, existing listeners you wrote for Connect
  or Sell continue to work without changes.
</Note>

## Webhooks

Unify does not add a webhook payload of its own. The selected flow fires its standard webhooks, so the server-side notification you receive when a domain goes live is the same one Connect or Sell would send on its own. See the [webhooks overview](/webhooks-overview) for payload detail.
