Workflows

Respond to a HITL workflow gate

Submit a user response to a paused gate, resuming the workflow from its paused state. Only relevant when the audience was created with hitl: true. The response value must match one of the options presented in the paused_gate object from GET /v1/workflows/{workflow_run_id}. Only runs owned by the caller's organization can be resumed; other IDs return 404. Stale gates or non-paused runs return 409; invalid options return 400. Requires 'creator' scope.

post/v1/workflows/{workflow_run_id}/resume

Request

  • Base URL: https://api.infiniteaudience.ai
  • URL: https://api.infiniteaudience.ai/v1/workflows/{workflow_run_id}/resume
  • Auth: HTTP bearer

Path parameters

workflow_run_idstring required

The workflow run ID to resume.

Request body

gate_idstring required

Gate identifier from the paused_gate object.

responsestring required

Selected option — must match one of the values in paused_gate.options.

Response

Gate response accepted, workflow resumed.

workflow_run_idstring
status'running' | 'completed'

Changes

No recorded changes to this operation across all 1 revision of this API.