Skip to main content
post/v1/events/trigger
Request example
Response
post/v1/events/trigger

Trigger a workflow by sending a POST request with the workflow identifier, target subscriber(s), and optional payload. The response includes a transactionId you can use to trace the run in the Activity Feed, cancel the event, or look up related messages.

Idempotency and billing#

If you retry a trigger request, use an idempotency key to avoid duplicate workflow runs and duplicate billing.

MechanismWhere it appliesEffect on billing
Idempotency-Key headerAPI layer, before the request is queuedAfter the first request completes, duplicates return the cached response and count as one workflow run
transactionId in the request bodyDuring trigger processingDoes not provide the same API-level protection as an idempotency key

When you send the same Idempotency-Key on multiple POST /v1/events/trigger requests, Novu halts duplicates at the API layer. Once the first request completes, later requests return the cached response and never reach the worker queue, so only one trigger counts toward billing. While the first request is still processing, duplicates receive a 409 Conflict response.

The optional transactionId field is useful for tracing and cancellation, but it is not a substitute for idempotency. Novu checks transactionId uniqueness during processing rather than at the API boundary, so concurrent or retried requests with the same transactionId are not deduplicated the same way. For safe retries and atomic deduplication, send an Idempotency-Key header on every trigger request.

Note

Idempotency is not enabled for all organizations. Contact support to enable it for your organization.

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
namestringrequired#
The trigger identifier of the workflow you wish to send. This identifier can be found on the workflow page.

Example:"workflow_identifier"

payloadobject#

The payload object is used to pass additional custom information that could be
used to render the workflow, or perform routing rules based on it.
This data will also be available when fetching the notifications feed from the API to display certain parts of the UI.

Example:
bridgeUrlstring#
Optional Bridge Endpoint URL used to route this trigger to a specific Bridge application. Useful during local development when multiple engineers share an organization: set this to your personal tunnel URL from npx novu@latest dev (for example via NOVU_BRIDGE_URL) so app-fired triggers hit your machine instead of the environment's synced Bridge URL. Must be a publicly reachable https URL — private or localhost addresses are rejected.

Example:"https://your-tunnel.novu.co/api/novu"

overridesobject#
This could be used to override provider specific configurations
Example:
agentIdstring#
Override the workflow-assigned agent for this trigger using the public agent identifier. Omit to use the workflow default; pass null to disable agent routing for this execution.

Example:"support-agent"

toobject · string[] · string · objectrequired#
The recipients list of people who will receive the notification. Maximum number of recipients can be 100.
transactionIdstring#

A unique identifier for deduplication. If the same transactionId is sent again,
the trigger is ignored. Useful to prevent duplicate notifications. The retention period depends on your billing tier.

actorstring · object#

It is used to display the Avatar of the provided actor's subscriber id or actor object.
If a new actor object is provided, we will create a new subscriber in our system

tenantstring · object#

It is used to specify a tenant context during trigger event.
Existing tenants will be updated with the provided details.

contextobject#

Responses

application/json
Created
acknowledgedbooleanrequired#
Indicates whether the trigger was acknowledged or not
statusenum<string>required#
Status of the trigger
Options:errortrigger_not_activeno_workflow_active_steps_definedno_workflow_steps_definedprocessedno_tenant_foundinvalid_recipients
errorstring[]#
In case of an error, this field will contain the error message(s)
transactionIdstring#
The returned transaction ID of the trigger
jobDataobject#