---
title: "Runs an automation through its Manual trigger."
method: POST
path: "/automations/{id}/run"
tags: ["Automations"]
---

# Runs an automation through its Manual trigger.

`POST /automations/{id}/run`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/automations/{id}/run`
- Auth: HTTP bearer

Starts the specified automation through its manual trigger and returns the newly created execution record.

## Path parameters

- `id` string, required

## Response `200`

Returns the newly created automation execution record.

- AutomationRunRecord: 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.
    - `rootEventId` string: Identifier of the original event that started the automation chain.
    - `triggerEventId` string: Identifier of the event that directly triggered this run.
    - `runId` string: Identifier of the automation run that produced the event.
    - `actionId` string, nullable: Identifier of the action that produced the event, when applicable.
    - `automationIds` string[]: Automation IDs in execution order, including the run that produced this event.
  - `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.
    - `smsDelivery` AutomationSmsDeliveryRecord, nullable: Delivery outcome of the persisted SMS. Workflow steps advance on command acceptance, without waiting for delivery.
      - `smsEventId` string: Durable SMS event ID used to read subsequent delivery outcomes.
      - `status` 'draft' | 'scheduled' | 'queued' | 'sending' | 'sent' | 'received' | 'delivered' | 'failed' | 'undeliverable' | 'opted_out' | 'blocked_compliance' | 'blocked_billing' | 'blocked_missing_campaign' | 'canceled', nullable: Describes the normalized lifecycle of an SMS or MMS message from scheduling through delivery or failure.
      - `scheduledFor` string, date-time, nullable: UTC time at which the SMS is scheduled to send.
      - `nextRetryAt` string, date-time, nullable: UTC time of the next automatic delivery retry, if any.
      - `errorCode` string, nullable: Machine-readable delivery failure code.
      - `reason` string, nullable: Redacted reason supplied by the delivery pipeline.
      - `summary` string: Customer-safe delivery summary and suggested next action.
    - `id` string: Unique Leadping identifier for this automation action run record.
    - `automationRunId` string, nullable: Automation run ID connected to this action or event record.
    - `actionId` string, nullable: Automation action ID executed or evaluated by this automation action run record.
    - `actionType` string: Automation action type, such as send SMS or create task.
    - `order` integer: Sort order used to evaluate or display this automation action run record.
    - `status` string: Current lifecycle status for this automation action run record in the Leadping API.
    - `selectedConnectionId` string, nullable: Connection selected by a control-flow action such as a weighted random split.
    - `startedAt` string, date-time: UTC timestamp when processing started for this automation action run record.
    - `scheduledAt` string, date-time, nullable: UTC timestamp when this automation action run record was scheduled.
    - `completedAt` string, date-time, nullable: UTC timestamp when processing completed for this automation action run record.
    - `failedAt` string, date-time, nullable: UTC timestamp when processing failed for this automation action run record.
    - `processingAttempts` integer: Number of processing attempts made for this workflow or delivery request.
    - `nextRetryAt` string, date-time, nullable: UTC timestamp when Leadping will retry this automation action run record.
    - `failureCode` string, nullable: Machine-readable failure code for troubleshooting this automation action run record.

## Other responses

- `400`: The automation cannot be run with its current configuration or state.
- `401`: Authentication credentials are missing or invalid.
- `403`: The authenticated user is not allowed to run this automation.
- `404`: The requested resource or required account context was not found.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/automations/:id/run/post.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
