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.
type
Workflow type.
Allowed values:
workflow_id
Optional workflow ID. Omit to let the server generate one.
name
description
trigger_event_type
is_starred
tasks
Workflow task definitions. Monitor tasks are typically generated by the monitor editor.
Response
Workflow created successfully
id
workflow_id
version
name
description
type
trigger_event_type
tasks
is_enabled
is_read_only
created_at
updated_at
Errors
401
Unauthorized Error