> For the complete documentation index, see [llms.txt](https://docs.rootcause.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rootcause.ai/more-details/applications/application-modules/emitevent.md).

# Emit event

> Publish a named application event with a JSON payload for other applications to subscribe to.

Publishes a named event other applications in this workspace can start a flow from.

The publish half of the pair OnAppEvent subscribes to, and the seam that lets applications compose without one importing the other. Durable only: the emit has to outlive the run that made it.

## At a glance

|                          |                        |
| ------------------------ | ---------------------- |
| Module type              | `EmitEvent`            |
| Category                 | Outputs                |
| Default tier             | `durable`              |
| Runs on                  | `durable`              |
| Starts a flow            | no                     |
| Holds a body             | no                     |
| Keeps state between runs | no                     |
| Available in             | every application type |

## Parameters

### `name`

`string` · required · defaults to `""`

The event name subscribers listen for.

## Inputs

| Port      | Kind    | Required | Description                                                                                                                           |
| --------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `on`      | `event` | no       | Implicit on every module that does not itself start a flow: wire an event here to make this module the start of what that event runs. |
| `payload` | `json`  | yes      | The JSON body subscribers receive.                                                                                                    |

## Outputs

*None.*

***

[← All application modules](/more-details/applications/application-modules.md)
