Create a workflow

Create a workflow. Set type to automations, monitors, or evaluators to specify the workflow kind.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Request

This endpoint expects an object.
typeenumRequired
Workflow type.
Allowed values:
workflow_idstringOptional
Optional workflow ID. Omit to let the server generate one.
namestringOptional
descriptionstring or nullOptional
trigger_event_typeenum or nullOptional
is_starredbooleanOptional
taskslist of objectsOptional
Workflow task definitions. Monitor tasks are typically generated by the monitor editor.

Response

Workflow created successfully
idstring
workflow_idstring
versioninteger
namestring
descriptionstring or null
typeenum
trigger_event_typestring or null
taskslist of maps from strings to any
is_enabledboolean
is_read_onlyboolean
created_atdatetime
updated_atdatetime

Errors

401
Unauthorized Error