Triggered Workflows

List, inspect, export, unblock, and restart triggered workflow tasks for lifecycle management policies

Triggered workflow tasks are the core execution unit of Veza Lifecycle Management. Each task represents a single workflow execution for an identity, created when a policy's source of identity detects a change (new hire, attribute change, termination, etc.).

These APIs correspond to the Triggered Workflows tab on the Activity Log page in the Veza UI.

Triggered Workflow APIs help you:

  • Monitor real-time and historical workflow execution across all policies

  • Investigate errored or blocked tasks with full state and message details

  • Unblock tasks that are held by safety limit thresholds

  • Restart previously failed tasks for reprocessing

  • Export workflow task data for compliance reporting and auditing

Endpoints

Method
Endpoint
Description

GET

Retrieve a paginated list of triggered workflow tasks

GET

Retrieve a single workflow task by ID

GET

List workflow tasks scoped to a specific policy

POST

Export workflow tasks to a downloadable file

POST

Run or abandon blocked workflow tasks

POST

Restart a previously errored or completed task

Key Concepts

Task States

Each workflow task progresses through the following states:

State
Description

INITIAL

Task created but not yet started

RUNNING

Task is currently executing actions

COMPLETED

Task completed successfully

ERRORED

Task failed (check messages for details)

SKIPPED

Task was skipped (conditions not met)

SCHEDULED

Task is scheduled for future execution

PENDING

Task is waiting for a prerequisite

BLOCKED

Task is blocked by a safety limit threshold

ABANDONED

Task was manually abandoned

Identity Status (Trigger Reason)

The identity_status field indicates what change triggered the workflow:

Value
Description

NONE

No specific identity change (e.g., manual trigger)

NEW

New identity discovered in the source of identity

DELETED

Identity removed from the source of identity

CHANGED

One or more identity attributes changed

UNCHANGED_RESYNC

Identity unchanged but re-synced

Priority Levels

Value
Description

UNSET

Default behavior

LOW

Processed after all higher-priority tasks

NORMAL

Standard priority

MEDIUM

Elevated priority

HIGH

Processed before normal and low

CRITICAL

Processed immediately

List Workflow Tasks

Endpoint

Description

Retrieve a paginated list of triggered workflow tasks across all policies. Supports SCIM-style filtering, ordering, and pagination.

Filterable Fields

Field
Operators
Description

id

eq

Workflow task ID

policy_id

eq

Policy that owns the task

state

eq

Current execution state

workflow

eq, ne, co

Workflow name (case-insensitive)

identity_id

eq, co, sw, ew

Identity ID

identity_name

eq, co, sw, ew

Identity display name (case-insensitive)

identity_status

eq, ne

Change type that triggered the task

priority

eq, ne, gt, ge, lt, le

Execution priority

started_at

gt, lt, ge, le

Task start time

completed_at

gt, lt, ge, le

Task completion time

manually_triggered

eq

Whether task was manually triggered

dry_run

eq

Whether task was a dry run

runtime_change_limit_reached

eq

Whether blocked by safety limit

API Reference

List Triggered Workflow Tasks

get

Retrieve a paginated list of triggered workflow tasks across all policies. Each task represents a single workflow execution for an identity, created when a policy's source of identity detects a change. Use the filter parameter with SCIM-style expressions to narrow results by state, policy, identity, or time range. Corresponds to the "Triggered Workflows" tab in the Activity Log UI.

Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Query parameters
filterstringOptional

SCIM-style filter expression. Filterable fields: id (eq), policy_id (eq), policy_version_number (eq, gt, lt, ge, le), entity_type (eq), entity_id (eq), state (eq), dry_run (eq), workflow (eq, ne, co — case-insensitive), scheduled_at (gt, lt, ge, le), extraction_event (eq), previous_task_id (eq, co, sw, ew), identity_id (eq, co, sw, ew), identity_name (eq, co, sw, ew — case-insensitive), started_at (gt, lt, ge, le), completed_at (gt, lt, ge, le), any_changes (eq), high_priority (eq), manually_triggered (eq), manually_triggered_by (eq, ne), manually_override_workflows (eq), identity_status (eq, ne), priority (eq, ne, gt, ge, lt, le), reason (eq, ne), t_created_at (gt, lt, ge, le), t_updated_at (gt, lt, ge, le), runtime_change_limit_reached (eq), disregard_change_limit (eq). Example: state eq "ERRORED" and policy_id eq "abc-123".

order_bystringOptional
page_sizeinteger · int32Optional
page_tokenstringOptional
Responses
chevron-right
200

OK

application/json
next_page_tokenstringOptional
has_morebooleanOptional
get
/api/private/lifecycle_management/workflow_tasks

Request Example

Get Workflow Task

Endpoint

API Reference

Get Triggered Workflow Task

get

Retrieve a single triggered workflow task by its unique ID. Returns the full PolicyWorkflowTask object including state, identity details, timing information, priority, and any error messages.

Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Path parameters
idstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/private/lifecycle_management/workflow_tasks/{id}

Request Example

List Workflow Tasks by Policy

Endpoint

Description

Same parameters and response shape as the global List Workflow Tasks endpoint, but automatically scoped to the given policy_id.

API Reference

List Workflow Tasks by Policy

get

Retrieve a paginated list of triggered workflow tasks scoped to a specific policy. Accepts the same filter, ordering, and pagination parameters as the global List Workflow Tasks endpoint but automatically restricts results to the given policy_id.

Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Path parameters
policy_idstringRequired
Query parameters
filterstringOptional

SCIM-style filter expression. Same filterable fields as the global List Workflow Tasks endpoint. See that endpoint for the complete field reference.

order_bystringOptional
page_sizeinteger · int32Optional
page_tokenstringOptional
Responses
chevron-right
200

OK

application/json
next_page_tokenstringOptional
has_morebooleanOptional
get
/api/private/lifecycle_management/policies/{policy_id}/workflow_tasks

Export Workflow Tasks

Endpoint

Description

Export triggered workflow tasks matching a filter to a downloadable CSV file. The request body wraps the same filter and ordering parameters used by the List endpoint.

API Reference

Export Triggered Workflow Tasks

post

Export triggered workflow tasks to a downloadable file. Accepts the same filter and ordering parameters as the List endpoint. Returns an export job reference that can be polled for completion. Supported formats include CSV.

Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Query parameters
formatinteger · enumOptional
Body
filterstringOptional
order_bystringOptional
page_sizeinteger · int32Optional
page_tokenstringOptional
Responses
chevron-right
200

OK

application/json
idstringOptional
post
/api/private/lifecycle_management/workflow_tasks:export

Request Example

Unblock Workflow Tasks

Endpoint

Description

Unblock workflow tasks that are in BLOCKED state because a safety limit threshold was reached. You can target tasks by a specific id or by a SCIM filter expression. Choose whether to RUN (resume processing) or ABANDON (skip without executing) the blocked tasks.

circle-exclamation

API Reference

Unblock Triggered Workflow Tasks

post

Unblock workflow tasks that are in BLOCKED state due to safety limit thresholds being reached. Tasks can be targeted by a specific ID or by a SCIM filter expression. Choose to either RUN the blocked tasks (resume processing) or ABANDON them (skip without executing). Requires admin or operator role.

Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Body

Request to unblock workflow tasks that are in BLOCKED state due to safety limit thresholds. Target tasks by ID or filter expression, and choose whether to run or abandon them.

idstringOptional

target worlflow task with specified id

filterstringOptional

target all blocked workflow tasks matching the SCIM filter expression

actioninteger · enumOptional

The action to take on the blocked workflow tasks.

Possible values:
Responses
chevron-right
200

OK

application/json
idstringOptional
filterstringOptional
actioninteger · enumOptional
tasks_unblockedstringOptional
post
/api/private/lifecycle_management/workflow_tasks:unblock

Request Example

Restart Workflow Task

Endpoint

Description

Restart a previously errored or completed workflow task. Creates a new task execution linked to the original. Requires admin role.

API Reference

Restart Triggered Workflow Task

post

Restart a previously errored or completed workflow task. Creates a new task execution linked to the original task. Requires admin role.

Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Path parameters
idstringRequired
Query parameters
somethingstringOptional
Responses
chevron-right
200

OK

application/json
post
/api/private/lifecycle_management/workflow_tasks/{id}:restart

Request Example

Authentication

All Triggered Workflow API requests require authentication. See API Authentication for details.

Last updated

Was this helpful?