Skip to content
AdlyseDocs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_statusget_node_runget_workflow_schemacreate_workflowupdate_workflowdelete_workflowcreate_releaselist_releasesset_production_releasedelete_releaselist_authoring_resourceslist_tablesget_tablequery_table_rowscreate_tableadd_table_columnsadd_table_rowsupsert_table_rowsupdate_table_rowsdelete_table_rowsupdate_tabledelete_tableupdate_table_columndelete_table_columnreorder_table_columnslist_schedulesget_schedulecreate_scheduleupdate_schedulepause_scheduleresume_scheduledelete_scheduletrigger_schedulerun_assistantget_assistant_runlist_assistant_threadsget_assistant_threadlist_assistantsget_assistantcreate_assistantupdate_assistantdelete_assistantlist_assistant_handoffscreate_assistant_handoffupdate_assistant_handoffdelete_assistant_handofflist_filesread_filegrep_fileswrite_fileedit_filemove_filearchive_filelist_file_versionspromote_file_versionlist_skillsget_skillcreate_skillupdate_skilldelete_skillassign_skill_to_assistantremove_skill_from_assistantlist_agent_resourcesstart_batch_taskget_batch_taskcontrol_batch_task
adlyse-admin
adlyse-all
  1. Overview
  2. adlyse-workflows

run_workflow

Trigger a workflow run. Runs are asynchronous — poll with get_run_status to retrieve the output.

Parameters#

NameTypeRequiredDefaultDescription
workflow_idstringyesWorkflow id
input_datastring | object | nullno{}Input matching the workflow’s input_schema. String values are parsed as JSON when possible; otherwise treated as raw input.
targetstring | nullnonullWhat to run. Omitted: the production release when one is pinned, else the workflow itself (what schedules and the API run). Or "draft" (the working copy, even when a release is pinned), "production", or a release_... id.

Returns#

json
{
  "run_id": "agent_run_xyz",
  "status": "pending"
}
FieldDescription
run_idPass to get_run_status to poll
statusInitial status: usually pending. Typical path: pending → running → completed

Errors#

error_typeWhen
auth_errorMissing / invalid API key
not_foundWorkflow id doesn’t exist or is outside your org
invalid_inputInput failed the workflow’s trigger-schema validation
execution_errorCouldn’t dispatch the run (rare — usually transient)

Example#

Request:

json
{
  "workflow_id": "agent_abc",
  "input_data": { "email": "lead@example.com" }
}

Response:

json
{ "run_id": "agent_run_xyz", "status": "pending" }

Then poll get_run_status until status is completed or failed.

See also#

  • get_workflow — inspect input_schema before calling
  • get_run_status — poll for completion
Previousget_workflowNextget_run_status