---
title: "Create an organization lead follow-up automation"
method: POST
path: "/automations"
tags: ["Automations"]
---

# Create an organization lead follow-up automation

`POST /automations`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/automations`
- Auth: HTTP bearer

Creates an automation for current-organization leads, configuring triggers, message steps, and follow-up behavior.

## Request body

- AutomationRequest: Defines the fields clients can send when working with automation configuration.
  - `timeZoneId` string, nullable: Time zone used by workflow time and day conditions in preview and runtime. New workflows default to the organization's time zone.
  - `description` string, nullable: Human-readable description that explains this automation configuration request to API users.
  - `enabled` boolean, nullable: Indicates whether this automation configuration request is active and available in the Leadping API.
  - `scope` string, nullable: Scope that limits where this automation configuration request applies in Leadping.
  - `visibility` string, nullable: Visibility level that controls who can see this automation configuration request.
  - `triggers` AutomationTrigger[]: Automation triggers that can start this workflow.
    - `id` string: Unique Leadping identifier for this automation trigger.
    - `type` string: Type classification used to route and interpret this automation trigger in the Leadping API.
    - `displayName` string, nullable: Human-readable display name shown for this automation trigger.
    - `isEnabled` boolean: Indicates whether this automation trigger is active and allowed to run.
    - `settings` object: Key-value settings that configure how this automation trigger behaves.
  - `conditionGroups` AutomationConditionGroup[]: Grouped automation conditions used to decide whether this workflow should run.
    - `id` string: Unique Leadping identifier for this automation condition group.
    - `mode` string: Execution mode that controls how this automation condition group is evaluated.
    - `conditions` AutomationCondition[]: Automation conditions evaluated before an action or workflow runs.
      - `id` string: Unique Leadping identifier for this automation condition.
      - `type` string: Type classification used to route and interpret this automation condition in the Leadping API.
      - `operator` string, nullable: Automation comparison operator used by this condition.
      - `isEnabled` boolean: Indicates whether this automation condition is active and allowed to run.
      - `settings` object: Key-value settings that configure how this automation condition behaves.
  - `actions` AutomationAction[]: Automation actions configured or returned for this workflow.
    - `id` string: Unique Leadping identifier for this automation action.
    - `type` string: Type classification used to route and interpret this automation action in the Leadping API.
    - `order` integer: Sort order used to evaluate or display this automation action.
    - `isEnabled` boolean: Indicates whether this automation action is active and allowed to run.
    - `settings` object: Key-value settings that configure how this automation action behaves.
  - `connections` AutomationConnection[]: Directed connections between nodes in this automation graph.
    - `id` string: Unique identifier for this connection.
    - `sourceNodeId` string: Graph node identifier where the connection begins.
    - `targetNodeId` string: Graph node identifier where the connection ends.
    - `weight` integer: Percentage chance assigned to this connection when it leaves a weighted random split. Ignored for connections from other node types.
  - `version` integer: Version number for this automation configuration request schema or saved configuration.
  - `name` string, required
  - `id` string, nullable

## Response `201`

The automation response was created successfully.

- AutomationResponse: Describes automation configuration data returned by Leadping.
  - `timeZoneId` string: Time zone used by workflow time and day conditions in preview and runtime. Defaults to UTC.
  - `isDemo` boolean: Whether this record belongs to demo data.
  - `description` string, nullable: Human-readable description that explains this automation configuration response to API users.
  - `enabled` boolean, nullable: Indicates whether this automation configuration response is active and available in the Leadping API.
  - `organizationId` string, nullable: Organization ID that owns this automation.
  - `createdByUserId` string, nullable: User ID of the person who created this automation configuration response.
  - `scope` string, nullable: Scope that limits where this automation configuration response applies in Leadping.
  - `visibility` string, nullable: Visibility level that controls who can see this automation configuration response.
  - `managementLevel` string, nullable: Management level that controls whether Leadping or the organization owns this automation setting.
  - `isSystemManaged` boolean: Indicates whether Leadping manages this automation configuration response automatically instead of a user.
  - `triggers` AutomationTrigger[]: Automation triggers that can start this workflow.
    - `id` string: Unique Leadping identifier for this automation trigger.
    - `type` string: Type classification used to route and interpret this automation trigger in the Leadping API.
    - `displayName` string, nullable: Human-readable display name shown for this automation trigger.
    - `isEnabled` boolean: Indicates whether this automation trigger is active and allowed to run.
    - `settings` object: Key-value settings that configure how this automation trigger behaves.
  - `conditionGroups` AutomationConditionGroup[]: Grouped automation conditions used to decide whether this workflow should run.
    - `id` string: Unique Leadping identifier for this automation condition group.
    - `mode` string: Execution mode that controls how this automation condition group is evaluated.
    - `conditions` AutomationCondition[]: Automation conditions evaluated before an action or workflow runs.
      - `id` string: Unique Leadping identifier for this automation condition.
      - `type` string: Type classification used to route and interpret this automation condition in the Leadping API.
      - `operator` string, nullable: Automation comparison operator used by this condition.
      - `isEnabled` boolean: Indicates whether this automation condition is active and allowed to run.
      - `settings` object: Key-value settings that configure how this automation condition behaves.
  - `actions` AutomationAction[]: Automation actions configured or returned for this workflow.
    - `id` string: Unique Leadping identifier for this automation action.
    - `type` string: Type classification used to route and interpret this automation action in the Leadping API.
    - `order` integer: Sort order used to evaluate or display this automation action.
    - `isEnabled` boolean: Indicates whether this automation action is active and allowed to run.
    - `settings` object: Key-value settings that configure how this automation action behaves.
  - `connections` AutomationConnection[]: Directed connections between nodes in this automation graph.
    - `id` string: Unique identifier for this connection.
    - `sourceNodeId` string: Graph node identifier where the connection begins.
    - `targetNodeId` string: Graph node identifier where the connection ends.
    - `weight` integer: Percentage chance assigned to this connection when it leaves a weighted random split. Ignored for connections from other node types.
  - `scheduleStartedAt` string, date-time: When the current automation version was saved and its schedule started.
  - `lastRunAt` string, date-time, nullable: UTC timestamp when this automation last ran.
  - `lastRunStatus` string, nullable: Status from the most recent automation run.
  - `version` integer: Version number for this automation configuration response schema or saved configuration.
  - `user` IdNamePair, nullable: User summary connected to this automation configuration response.
    - `id` string, required
    - `name` string, required
  - `organization` IdNamePair, nullable: User summary connected to this automation configuration response.
    - `id` string, required
    - `name` string, required
  - `name` string
  - `id` string
  - `createdAt` string, date-time
  - `modifiedAt` string, date-time, nullable

## Other responses

- `400`: The request was invalid or failed validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource or required account context was not found.
- `415`: The request content type is not supported by this endpoint.
- `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-30** `8737cd581a0f`: 1 info
  - added the optional property `allOf[#/components/schemas/AutomationResponse]/scheduleStartedAt` to the response with the `201` status
- **2026-11-19** `a2792ef10ff9`: 2 info
  - the request property `allOf[#/components/schemas/AutomationRequest]/timeZoneId` became nullable (media type: application/json)
  - the request property `allOf[#/components/schemas/AutomationRequest]/timeZoneId` became nullable (media type: application/*+json)
- **2026-11-11** `81aed8c9afb7`: 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `415`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/automations/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)
