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

# Event types

> Every webhook event Browserbase publishes, grouped by product, with the payload each one carries.

Event type names follow the pattern `<domain>.<resource>.<state>`. The domain is the Browserbase product the event comes from, the resource is the object it concerns, and the state is what happened to it. For example, `sessions.navigations.blocked` reports that a session's navigation policy blocked a navigation.

Every delivery wraps its payload in the same [envelope](https://docs.browserbase.com/platform/webhooks/overview.md#what-you-receive). This page describes the `data` object for each type.

> [!NOTE]
>
> Browserbase may add or change event types and payload fields.

## Sessions

Session events report what happens inside a running browser session.

| Event type | Fires when |
| - | - |
| `sessions.navigations.blocked` | A session's [navigation policy](https://docs.browserbase.com/platform/browser/security/navigation-policies.md) blocks a navigation |

Browserbase sends one event for each navigation a bound session's policy blocks, for the page itself or an iframe inside it. Allowed navigations send no event. The event's `resourceId` is the session ID.

See [Get notified of blocked navigations](https://docs.browserbase.com/platform/browser/security/navigation-policies.md#get-notified-of-blocked-navigations) for the payload and what each field means.

## Functions

Function events come from [Functions](https://docs.browserbase.com/platform/functions/overview.md). An invocation is one run of a Function, and a build is a publish of your Function code.

### Invocations

| Event type | Fires when |
| - | - |
| `functions.invocations.pending` | Browserbase accepts and queues an invocation |
| `functions.invocations.running` | An invocation starts executing |
| `functions.invocations.completed` | An invocation finishes successfully |
| `functions.invocations.failed` | An invocation fails |

```json theme={null}
{
  "id": "85e6ff2d-91de-468a-867c-e0d9e4587063",
  "type": "functions.invocations.completed",
  "resourceId": "a3f1c2d4-7b90-4e51-9c8a-2f6d1e0b4c73",
  "data": {
    "invocationId": "a3f1c2d4-7b90-4e51-9c8a-2f6d1e0b4c73",
    "functionId": "5d0c1f6e-2b7a-4c39-8e41-9a6f3b2d7c10",
    "versionId": "e2b84c71-0d3f-4a96-b5c8-71f9d2a6e304",
    "transitionedAt": "2026-11-23T18:04:12.250Z"
  }
}
```

| Field | Description |
| - | - |
| `invocationId` | The invocation this event is about. Also the event's `resourceId` |
| `functionId` | The Function the invocation runs |
| `versionId` | The Function version the invocation runs |
| `transitionedAt` | When the invocation entered this status |

### Builds

| Event type | Fires when |
| - | - |
| `functions.builds.running` | A build starts |
| `functions.builds.completed` | A build finishes successfully |
| `functions.builds.failed` | A build fails |

```json theme={null}
{
  "id": "1b9d4e7a-62c0-4f83-a5d1-3e8f07c2b946",
  "type": "functions.builds.completed",
  "resourceId": "7c4e9a12-3b58-4f06-9d21-c8a0e5b7f493",
  "data": {
    "functionBuildId": "7c4e9a12-3b58-4f06-9d21-c8a0e5b7f493",
    "functionIds": ["5d0c1f6e-2b7a-4c39-8e41-9a6f3b2d7c10"],
    "transitionedAt": "2026-11-23T18:04:12.250Z"
  }
}
```

| Field | Description |
| - | - |
| `functionBuildId` | The build this event is about. Also the event's `resourceId` |
| `functionIds` | The Functions the build produced versions for. Browserbase discovers Functions during the build, so this is empty until the build completes |
| `transitionedAt` | When the build entered this status |

> [card] [Register an endpoint](https://docs.browserbase.com/platform/webhooks/registering-endpoints.md)
>
> Subscribe an endpoint to the event types you need.

> [card] [Verify webhook deliveries](https://docs.browserbase.com/platform/webhooks/verifying-deliveries.md)
>
> Check signatures before processing webhook events.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.