Skip to main content
post/v2/workflows
Request example
Response
post/v2/workflows

Authorization

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

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
namestringrequired#
Name of the workflow
descriptionstring#
Description of the workflow
tagsstring[]#
Tags associated with the workflow
activeboolean#
Whether the workflow is active

Default: false

validatePayloadboolean#
Enable or disable payload schema validation
payloadSchemaobject#
The payload JSON Schema for the workflow
isTranslationEnabledboolean#
Enable or disable translations for this workflow

Default: false

agentobject#
Optional agent assignment used to route this workflow through an agent's connected channels. Pass null to clear.
workflowIdstringrequired#
Unique identifier for the workflow
stepsobject[]required#
Steps of the workflow
__sourceenum<string>#
Source of workflow creation

Default: "editor"

Options:template_storeeditornotification_directoryonboarding_digest_demoonboarding_in_appempty_statedropdownonboarding_get_startedbridgedashboardai
preferencesobject#
Workflow preferences
severityenum<string>#
Override the severity of the workflow
Options:highmediumlownone

Responses

application/json
Created
namestringrequired#
Name of the workflow
descriptionstring#
Description of the workflow
tagsstring[]#
Tags associated with the workflow
activeboolean#
Whether the workflow is active

Default: false

validatePayloadboolean#
Enable or disable payload schema validation
payloadSchemaobject#
The payload JSON Schema for the workflow
isTranslationEnabledboolean#
Enable or disable translations for this workflow

Default: false

agentobject#
Optional agent assignment used to route this workflow through an agent's connected channels. Null when unassigned.
_idstringrequired#
Database identifier of the workflow
workflowIdstringrequired#
Workflow identifier
slugstringrequired#
Slug of the workflow
updatedAtstringrequired#
Last updated timestamp
createdAtstringrequired#
Creation timestamp
updatedByobject#
User who last updated the workflow
lastPublishedAtstring#
Timestamp of the last workflow publication
lastPublishedByobject#
User who last published the workflow
stepsobject[]required#
Steps of the workflow
originenum<string>required#
Origin of the workflow
Options:novu-cloudnovu-cloud-v1external
preferencesobjectrequired#
Preferences for the workflow
statusenum<string>required#
Status of the workflow
Options:ACTIVEINACTIVEERROR
issuesobject#
Runtime issues for workflow creation and update
lastTriggeredAtstring#
Timestamp of the last workflow trigger
payloadExampleobject#
Generated payload example based on the payload schema
severityenum<string>required#
Override the severity of the workflow
Options:highmediumlownone