> This page is for Developer Documentation.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.benchling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.benchling.com/_mcp/server.

# Receiving Events in Your App

Benchling's event system lets your app react to actions and changes within a tenant without polling the API. When something happens in Benchling, such as an entity being registered, a workflow task updated, or a request created, an event is emitted and delivered directly to your app.

Common use cases:

* Triggering downstream object creation when a workflow step completes
* Syncing changes to an external database or LIMS in real time
* Sending notifications to Slack, Teams, or other third-party tools
* Automating instrument interactions based on sample state changes

> **Tip**
>
> **Best practice**
>
> Event payloads should not be treated as fully up-to-date. Events can be delivered late or out of order. Use the `apiURL` field in the payload to fetch the current state of the resource via the REST API when accuracy matters.

## Choosing a Delivery Method

Benchling supports two ways to deliver events to your app: **Webhooks** and **AWS EventBridge**. For most integrations, **Webhooks is the right choice**.

|                        | Webhooks                                                                  | AWS EventBridge                                                 |
| ---------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------- |
| **Recommended for**    | Most integrations                                                         | Existing AWS-native pipelines with EventBridge already in place |
| **Setup**              | App Manifest + Developer Console                                          | Benchling Developer Console + AWS account configuration         |
| **Available events**   | All `stable` v2 events + App Signals (canvas interactions, app lifecycle) | `alpha`, `beta`, and `stable` v2 events; no App Signals         |
| **Payload shape**      | Thin (IDs, event type, timestamps); fetch full resource via API           | Hydrated (identical to V2 API response)                         |
| **Permissions**        | Scoped to your app's permissions                                          | Unscoped; all subscribed events visible                         |
| **New event types**    | Available immediately on release                                          | May lag behind webhook availability                             |
| **Payload size limit** | No limit                                                                  | 256KB max; dropped fields listed in `excludedProperties`        |
| **Filtering**          | In your app code                                                          | In EventBridge rules                                            |

**Choose Webhooks if you are:**

* Building a new integration from scratch
* Using App Signals (canvas interactions, app lifecycle events)
* Looking for the simplest setup and fastest access to new event types

**Choose EventBridge if you are:**

* Working within an existing AWS EventBridge infrastructure
* Specifically need hydrated payloads without a follow-up API call
* Subscribing to `alpha` or `beta` events not yet available via webhooks

## Receiving Events via Webhooks

Two things are required:

* A Benchling App with event subscriptions declared in the App Manifest
* A publicly available HTTPS endpoint to receive webhook POST requests

**1. Add subscriptions to your App Manifest**

Declare the event types your app should receive in the `subscriptions` block:

```yaml
manifestVersion: 1
info:
  name: My Integration
  version: 1.0.0
subscriptions:
  deliveryMethod: WEBHOOK
  messages:
    - type: v2.entity.registered
    - type: v2.workflowTask.updated
    - type: v2.request.created
```

The full list of subscribable V2 event types is in the [v2 Webhooks section](/docs/api/v2-webhooks/app/activate-requested) of the API Reference. V3 events are listed in the [v3 Webhooks section](/docs/api/webhooks/custom-entity/created) of the API Reference; see [V3 Events](/docs/v3-events).

**2. Set your webhook URL in the Developer Console**

After installing or updating your app, set your HTTPS endpoint in the Developer Console. Benchling routes different event classes to subpaths of that URL automatically:

* App lifecycle events → `/lifecycle`
* Canvas interaction events → `/canvas`
* Data events → `/event`

For a complete walkthrough including payload handling and signature verification, see [Getting Started with Webhooks](/docs/getting-started-with-webhooks).

## Receiving Events via EventBridge

> **Info**
>
> **Before you begin**
>
> EventBridge setup requires Tenant Admin access with the Developer Platform capability enabled, and an active AWS account. If you're starting a new integration, [Webhooks](#receiving-events-via-webhooks) is recommended.

**1. Create a subscription in Benchling**

Navigate to `https://<YOUR_TENANT>.benchling.com/event-subscriptions` (or **Feature Settings → Developer Console → Events**) and create a new subscription with your AWS Account ID, region, and event bus name. This creates a Partner Event Source in your AWS account.

> **Warning**
>
> **Act immediately**
>
> AWS automatically deletes a Partner Event Source if it isn't associated with an event bus. Complete Step 2 before leaving the AWS console.

**2. Associate the source with an event bus**

In the AWS EventBridge console, find the new Partner Event Source and associate it with a new event bus. Each Benchling subscription maps 1:1 to a bus, which keeps events from dev, test, and prod environments isolated.

**3. Create rules and targets**

Create an EventBridge rule on your bus to route events to a target (Lambda, SQS, SNS, etc.), filtering by event type using the `detail-type` field:

```json
{
  "detail-type": ["v2.entity.registered"]
}
```

For detailed rule configuration, filtering patterns, and CloudFormation/SAM templates, see the [Events Getting Started guide](/docs/events-getting-started).

## What's Next

* [Getting Started with Webhooks](/docs/getting-started-with-webhooks): complete webhook setup and security verification
* [Getting Started with EventBridge](/docs/events-getting-started): full EventBridge configuration walkthrough
* [API Reference: v2 Webhooks](/docs/api/v2-webhooks/app/activate-requested): all V2 webhook-available events and payload schemas
* [API Reference: v3 Webhooks](/docs/api/webhooks/custom-entity/created): V3 events and their payload schemas
* [Events Reference](/docs/events-reference): all EventBridge-available events
* [Events FAQs](/docs/events-faqs): delivery guarantees, recovery procedures, common questions