App Events
Define events your product fires to trigger embedded workflows.

App Events are named events that originate in your application (for example user.signed_up, order.placed or record.updated). You declare each event on the App Events page with a JSON schema for its payload, and integration workflows start on it through the App Event trigger.
The flow is one-way: an App Event is the contract, and any number of workflows can listen for it. App Events do not return a result. To run a single workflow and get its answer back in the response, use a Request trigger instead.
Key Features
| Feature | Description |
|---|---|
| Named contract | Each event has a name and a JSON schema describing its payload. |
| Many-to-many | Any number of workflows (across any integrations) can carry an App Event trigger. |
| Environment awareness | Events fire against the environment specified in the request header. |
How to Use
Managing App Events (creating, editing, deleting and listing them, in the UI or through the admin API) requires a tenant admin. The New App Event button appears only while the Development environment is selected.
Creating an App Event
- Click New App Event in the top-right corner.
- Enter a Name. This is the event identifier.
- Enter the event's Schema as JSON: the structure of the payload your application sends. It documents the event's contract (see Firing an App Event for how the payload is delivered).
- Click Save.
The schema is a sample of the payload rather than a formal JSON Schema document. ByteChef derives the trigger's output fields from it, so the workflow editor can offer them as data pills. The dialog starts with this example:
{
"userId": "12345",
"email": "user@example.com",
"name": "John Doe",
"eventType": "user.signed_up",
"timestamp": "2026-05-18T10:00:00Z"
}Note that you do not select workflows here. Workflows opt in to receive an event by adding an App Event trigger and picking this event's name (see below).
Subscribing a workflow to an App Event
- Open a workflow in the integration editor.
- Add the App Event trigger (component: "App Event", trigger: "New Event").
- In the trigger's properties, select the event in App Event Id. The dropdown lists every App Event defined on the App Events page.
- Save and publish the integration.
The selected App Event Id does not filter the fan-out yet. The fire endpoint takes no event name, so every enabled workflow of the connected user that carries an App Event trigger starts - regardless of which App Event Id its trigger has selected. Treat the selection (and the schema) as the documented contract for the event, not as a runtime filter, and give a workflow its own conditional logic if it must ignore some events.
Firing an App Event from your application
POST to the embedded API with the end user's JWT:
POST /api/embedded/v1/app-events HTTP/1.1
Host: your-bytechef-host.example.com
Authorization: Bearer <end-user JWT>
X-Environment: DEVELOPMENTThe connected user is identified by the JWT sub claim. ByteChef starts an execution for every enabled workflow of that user that carries an App Event trigger, in the environment named by X-Environment: the workflows of their integration instances and the automations they activated, copies and references alike.
To fire the event from your own server instead, use your API Key and name the connected user in the path:
POST /api/embedded/v1/{externalUserId}/app-events HTTP/1.1
Host: your-bytechef-host.example.com
Authorization: Bearer <API Key>
X-Environment: DEVELOPMENTBoth routes start the same workflows. See the backend and frontend API reference.
Send the event's payload as the request body. ByteChef reads it once and delivers it to every workflow the event starts: the body becomes the App Event trigger's output, so later steps read its properties as variables. Shape it to match the event's schema. For the user.signed_up example above, your server sends:
curl -X POST "https://your-bytechef-host.example.com/api/embedded/v1/user-123/app-events" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "X-Environment: PRODUCTION" \
-d '{
"userId": "12345",
"email": "jane@example.com",
"name": "Jane Doe",
"eventType": "user.signed_up",
"timestamp": "2026-05-18T10:00:00Z"
}'A workflow step then reads a field of the payload as ${trigger_1.email}.
On success the response is 204 with no body. If some workflows could not be started, the others still run and the response is a 500 problem detail whose failedWorkflows lists the uuids that were not started.
Managing App Events
- Edit - update the event name or schema.
- Delete - remove the App Event. Any trigger that had selected it is left with no selection.
Example use cases
- User signup - your app fires
user.signed_up; workflows sync the new user to the customer's CRM and Mailchimp. - Order placed - your app fires
order.placed; workflows create an invoice in the customer's accounting tool and post to Slack. - Record updated - your app fires
record.updated; workflows sync the change to whatever third-party store the customer has connected.
Related
- Request Triggers - run one workflow and return its result in the response.
- Automation Code Workflows - how automation references join the App Event fan-out.
How is this guide?
Last updated on
Permission Expressions
Control which integrations, automation projects and workflows each connected user sees with a SpEL expression evaluated against the user's identity and metadata.
Request Triggers
Call one of a connected user's workflows from your application over HTTP and get the workflow's result back in the same response.