Workflows
Workflows let you orchestrate actions and call flows for your organization.Authentication & scope
- Header:
X-API-Key: YOUR_API_KEY - Read operations:
workflows:read - Write operations:
workflows:write - Use API Reference for Try-it on every workflow endpoint.
POST /v1/workflows
Creates a workflow. Body is DTO-accurate to CreateWorkflowDto.
201 Created
Request body fields
All fields besidestitle are optional. Each module object attaches (and enables) that step in the workflow. Modules run in this order during execution: agent (call) → email → sms → calendar.
Email and calendar modules require an active integration of the matching
provider and type (
EMAIL / CALENDAR) connected for your organization via
POST /integrations/oauth/{provider}/email/initiate or
.../calendar/initiate. If the integration’s OAuth token can’t be refreshed
(e.g. the connection was revoked), the module is skipped and the failure
reason is recorded on the workflow run instead of stopping the whole workflow.Common status codes
201created400validation error403missingworkflows:write500server error
POST /v1/workflows/{id}/run
Triggers immediate workflow execution.
201 Created
Common status codes
201execution started403missingworkflows:write404workflow not found500server error
GET /v1/workflows/jobs/{jobId}
Returns scheduler job status.
Common status codes
200success403missingworkflows:read404job not found500server error
POST /v1/workflows/schedule
Schedules workflow execution. Body is DTO-accurate to ScheduleWorkflowDto.
Common status codes
201scheduled400validation error403missingworkflows:write500server error
GET /v1/workflows
Returns paginated workflows for the organization. Requires workflows:read.
200 OK
Common status codes
200success403missingworkflows:read500server error
GET /v1/workflows/{id}
Returns workflow details, including the attached module configuration (CRM, agent, email, SMS, webhook, report, calendar, end call). Requires workflows:read.
200 OK
Common status codes
200success403missingworkflows:read404workflow not found500server error
PATCH /v1/workflows/{id}
Updates workflow metadata, structure, and enabled state. Body is DTO-accurate to UpdateWorkFlowDto; all fields are required and fully replace the existing values. Requires workflows:write.
200 OK
Common status codes
200updated400validation error403missingworkflows:write404workflow not found500server error
DELETE /v1/workflows/{id}
Deletes a workflow and its associated modules (CRM, agent, email, SMS, webhook, report, calendar, end call). This is irreversible. Requires workflows:write.
200 OK
Common status codes
200deleted403missingworkflows:write404workflow not found500server error
POST /v1/workflows/{id}/cancel
Cancels a queued, waiting, or active workflow run by removing its pending jobs from the queue. Requires workflows:write.
200 OK
Common status codes
200canceled403missingworkflows:write404workflow not found500server error
GET /v1/workflows/{id}/jobs
Returns all scheduler jobs (completed, active, waiting, failed, paused, delayed) linked to a workflow, with an aggregate count per state. Requires workflows:read.
200 OK
Common status codes
200success403missingworkflows:read500server error
GET /v1/workflows/{id}/summary
Returns a high-level execution summary (total contacts processed, completed, failed) for the workflow. Requires workflows:read.
200 OK
Common status codes
200success403missingworkflows:read404workflow not found500server error
GET /v1/workflows/{id}/summary/report
Returns a detailed per-contact report for every run of the workflow, including call, email, SMS, and calendar module outcomes. Requires workflows:read.
200 OK
Common status codes
200success403missingworkflows:read404workflow not found500server error
GET /v1/workflows/{id}/summary/timeline
Returns a chronological list of execution events (started, module executed, contact completed, etc.) for the workflow. Requires workflows:read.
200 OK
Common status codes
200success403missingworkflows:read404workflow not found500server error
Recommended flow
- Create workflow.
- Run once to validate behavior.
- Schedule if needed.
- Monitor jobs and summary endpoints.