Automations

Run an automation for one lead

Changed on

Queue a manual automation for a specific lead in Leadping. Reuse the same request ID if you retry so the retry refers to the original run.

post/automations/{id}/leads/{leadId}/run/{requestId}

Request

  • Base URL
    https://api.leadping.ai
  • Auth
    HTTP bearer

Path parameters

id, string required

The automation identifier.

leadId, string required

The lead identifier.

requestId, string uuid required

The identifier to reuse when retrying the same request.

Response

The run record associated with the request ID.

AutomationRunRecord required

History record schema for Leadping API automation run record data exposed in automation and audit views.

automationLineage, AutomationLineage nullable

Persisted origin of an automation run and the events produced by its actions.

id, string

Unique Leadping identifier for this automation run record.

automationId, string nullable

Automation ID connected to this workflow, run, or event.

organizationId, string nullable

Organization ID that owns this automation run.

leadId, string nullable

Lead ID that triggered this automation run, when the run is lead-based.

triggerType, string nullable

Automation trigger type that starts the workflow.

triggerId, string nullable

Identifier of the trigger node selected when this run was queued.

conditionResults, object

Results of condition nodes already visited by this run, preserved across waits and retries.

status, string

Current lifecycle status for this automation run record in the Leadping API.

executionMode, string

Execution mode used for automation preview or live workflow processing.

startedAt, string date-time

UTC timestamp when processing started for this automation run record.

completedAt, string date-time nullable

UTC timestamp when processing completed for this automation run record.

processingAttempts, integer

Number of processing attempts made for this workflow or delivery request.

lastAttemptAt, string date-time nullable

UTC timestamp when Leadping last attempted to process this automation run.

failureCode, string nullable

Machine-readable failure code for troubleshooting this automation run record.

skippedReason, string nullable

Human-readable reason explaining why Leadping skipped this automation run.

actions, AutomationActionRunRecord[]

Automation actions configured or returned for this workflow.

Changes

    • breaking

      removed the media type text/json for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • info

      added the non-success response with the status

    1 more change in this revision