Skip to content

Automation

Automations run their steps whenever one of their triggers fires. An automation created or updated through the API goes live immediately; pause it to stop new runs.

Create an automation
POST/v1/automations
List automations
GET/v1/automations
Retrieve an automation
GET/v1/automations/{id}
Update an automation
POST/v1/automations/{id}
Pause an automation
POST/v1/automations/{id}/pause
Resume an automation
POST/v1/automations/{id}/resume
Delete an automation
DELETE/v1/automations/{id}
ModelsExpand Collapse
AutomationCreateResponse object { id, createdAt, description, 10 more }
id: string

Unique identifier of the automation.

createdAt: string

When the automation was created.

description: string

What the automation is meant to accomplish.

lastFailureAt: string

When its most recent failed run ended, test runs included; null if no run has failed.

lastRunAt: string

When its most recent run started, test runs included; null before the first run.

model: string

Model the agent steps run on.

name: string

Display name of the automation.

minLength1
objectType: "automation"

Always automation.

runAs: object { type } or object { memberId, type } or object { type }

Who the automation acts as.

One of the following:
WorkspaceRunAs object { type }

Runs with no acting member.

type: "WORKSPACE"
MemberRunAs object { memberId, type }
memberId: string

Member the automation runs as.

minLength1
type: "MEMBER"
FromInputRunAs object { type }

The acting member is read from an input when a run starts. Set in the Lightfield app.

type: "FROM_INPUT"
status: "ACTIVE" or "PAUSED"

PAUSED automations keep their triggers but start no runs.

One of the following:
"ACTIVE"
"PAUSED"
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
One of the following:
AgentStep object { id, name, prompt, 2 more }
id: string

Step identifier. Assigned by Lightfield.

name: string

Display name of the step.

minLength1
prompt: string

Instructions the agent follows in this step.

minLength1
type: "AGENT"
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the agent may use in this step. Defaults to none.

One of the following:
ToolPermission object { name, type, reason }
name: string

Name of the tool, matching the Lightfield app.

minLength1
type: "TOOL"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

McpPermission object { connector, tools, type, reason }
connector: string

Connector the tools are on. Must already be lowercase and trimmed.

minLength1
tools: array of string

Unique, trimmed names of the connector tools the step may call.

type: "MCP"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

CodeStep object { id, command, name, 3 more }
id: string

Step identifier. Assigned by Lightfield.

command: string

Bash command the step runs as written.

minLength1
name: string

Display name of the step.

minLength1
type: "CODE"
description: optional string

What the command does. Does not change what runs.

minLength1
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the command may use. Defaults to none.

One of the following:
APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

SleepStep object { id, duration, name, 2 more }
id: string

Step identifier. Assigned by Lightfield.

duration: number or string

How long to sleep before the next step, at most one year.

One of the following:
number
string
name: string

Display name of the step.

minLength1
type: "SLEEP"
unit: "MILLISECOND" or "SECOND" or "MINUTE" or 2 more

Unit of duration.

One of the following:
"MILLISECOND"
"SECOND"
"MINUTE"
"HOUR"
"DAY"
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
One of the following:
ManualTrigger object { type }
type: "MANUAL"
WebhookTrigger object { type, url, exampleResult }
type: "WEBHOOK"
url: string

URL that starts a run when it receives a POST request.

exampleResult: optional object { json, parsed }

A sample payload and the fields the steps read from it.

json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
One of the following:
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
parsed: array of object { path, label, value }
path: array of string
label: optional string
value: optional string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
ScheduledTrigger object { schedule, type }
schedule: object { cron, timezone }
cron: string

Cron expression: 5 fields, 6 with a leading seconds field, or a macro such as @daily. For example 0 9 * * 1-5.

minLength1
timezone: string

IANA timezone the cron is evaluated in.

minLength1
type: "SCHEDULED"
RecordCreatedTrigger object { objectType, type }
objectType: string
type: "RECORD_CREATED"
RecordUpdatedTrigger object { objectType, type, watchedFields, watchedRelationships }
objectType: string
type: "RECORD_UPDATED"
watchedFields: array of string
watchedRelationships: optional array of object { direction, key }
direction: "SOURCE" or "DESTINATION"

The endpoint occupied by the record whose changes start the run.

One of the following:
"SOURCE"
"DESTINATION"
key: string

Public relationship key, such as $contact or a custom relationship slug.

minLength1
SequenceReplyTrigger object { type }
type: "SEQUENCE_REPLY"
updatedAt: string

When the automation was last changed.

AutomationDeleteResponse object { id, deleted, objectType }
id: string
deleted: boolean

Always true.

objectType: "automation"
AutomationListResponse object { data, object, totalCount }
data: array of object { id, createdAt, description, 8 more }
id: string

Unique identifier of the automation.

createdAt: string

When the automation was created.

description: string

What the automation is meant to accomplish.

lastFailureAt: string

When its most recent failed run ended, test runs included; null if no run has failed.

lastRunAt: string

When its most recent run started, test runs included; null before the first run.

name: string

Display name of the automation.

minLength1
objectType: "automation"

Always automation.

status: "ACTIVE" or "PAUSED"

PAUSED automations keep their triggers but start no runs.

One of the following:
"ACTIVE"
"PAUSED"
stepCount: number

How many steps a run has.

minimum-9007199254740991
maximum9007199254740991
triggerTypes: array of "MANUAL" or "WEBHOOK" or "SCHEDULED" or 3 more

The kinds of trigger that start a run, each listed once.

One of the following:
"MANUAL"
"WEBHOOK"
"SCHEDULED"
"RECORD_CREATED"
"RECORD_UPDATED"
"SEQUENCE_REPLY"
updatedAt: string

When the automation was last changed.

object: "list"
totalCount: number
minimum-9007199254740991
maximum9007199254740991
AutomationPauseResponse object { id, createdAt, description, 10 more }
id: string

Unique identifier of the automation.

createdAt: string

When the automation was created.

description: string

What the automation is meant to accomplish.

lastFailureAt: string

When its most recent failed run ended, test runs included; null if no run has failed.

lastRunAt: string

When its most recent run started, test runs included; null before the first run.

model: string

Model the agent steps run on.

name: string

Display name of the automation.

minLength1
objectType: "automation"

Always automation.

runAs: object { type } or object { memberId, type } or object { type }

Who the automation acts as.

One of the following:
WorkspaceRunAs object { type }

Runs with no acting member.

type: "WORKSPACE"
MemberRunAs object { memberId, type }
memberId: string

Member the automation runs as.

minLength1
type: "MEMBER"
FromInputRunAs object { type }

The acting member is read from an input when a run starts. Set in the Lightfield app.

type: "FROM_INPUT"
status: "ACTIVE" or "PAUSED"

PAUSED automations keep their triggers but start no runs.

One of the following:
"ACTIVE"
"PAUSED"
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
One of the following:
AgentStep object { id, name, prompt, 2 more }
id: string

Step identifier. Assigned by Lightfield.

name: string

Display name of the step.

minLength1
prompt: string

Instructions the agent follows in this step.

minLength1
type: "AGENT"
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the agent may use in this step. Defaults to none.

One of the following:
ToolPermission object { name, type, reason }
name: string

Name of the tool, matching the Lightfield app.

minLength1
type: "TOOL"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

McpPermission object { connector, tools, type, reason }
connector: string

Connector the tools are on. Must already be lowercase and trimmed.

minLength1
tools: array of string

Unique, trimmed names of the connector tools the step may call.

type: "MCP"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

CodeStep object { id, command, name, 3 more }
id: string

Step identifier. Assigned by Lightfield.

command: string

Bash command the step runs as written.

minLength1
name: string

Display name of the step.

minLength1
type: "CODE"
description: optional string

What the command does. Does not change what runs.

minLength1
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the command may use. Defaults to none.

One of the following:
APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

SleepStep object { id, duration, name, 2 more }
id: string

Step identifier. Assigned by Lightfield.

duration: number or string

How long to sleep before the next step, at most one year.

One of the following:
number
string
name: string

Display name of the step.

minLength1
type: "SLEEP"
unit: "MILLISECOND" or "SECOND" or "MINUTE" or 2 more

Unit of duration.

One of the following:
"MILLISECOND"
"SECOND"
"MINUTE"
"HOUR"
"DAY"
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
One of the following:
ManualTrigger object { type }
type: "MANUAL"
WebhookTrigger object { type, url, exampleResult }
type: "WEBHOOK"
url: string

URL that starts a run when it receives a POST request.

exampleResult: optional object { json, parsed }

A sample payload and the fields the steps read from it.

json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
One of the following:
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
parsed: array of object { path, label, value }
path: array of string
label: optional string
value: optional string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
ScheduledTrigger object { schedule, type }
schedule: object { cron, timezone }
cron: string

Cron expression: 5 fields, 6 with a leading seconds field, or a macro such as @daily. For example 0 9 * * 1-5.

minLength1
timezone: string

IANA timezone the cron is evaluated in.

minLength1
type: "SCHEDULED"
RecordCreatedTrigger object { objectType, type }
objectType: string
type: "RECORD_CREATED"
RecordUpdatedTrigger object { objectType, type, watchedFields, watchedRelationships }
objectType: string
type: "RECORD_UPDATED"
watchedFields: array of string
watchedRelationships: optional array of object { direction, key }
direction: "SOURCE" or "DESTINATION"

The endpoint occupied by the record whose changes start the run.

One of the following:
"SOURCE"
"DESTINATION"
key: string

Public relationship key, such as $contact or a custom relationship slug.

minLength1
SequenceReplyTrigger object { type }
type: "SEQUENCE_REPLY"
updatedAt: string

When the automation was last changed.

AutomationResumeResponse object { id, createdAt, description, 10 more }
id: string

Unique identifier of the automation.

createdAt: string

When the automation was created.

description: string

What the automation is meant to accomplish.

lastFailureAt: string

When its most recent failed run ended, test runs included; null if no run has failed.

lastRunAt: string

When its most recent run started, test runs included; null before the first run.

model: string

Model the agent steps run on.

name: string

Display name of the automation.

minLength1
objectType: "automation"

Always automation.

runAs: object { type } or object { memberId, type } or object { type }

Who the automation acts as.

One of the following:
WorkspaceRunAs object { type }

Runs with no acting member.

type: "WORKSPACE"
MemberRunAs object { memberId, type }
memberId: string

Member the automation runs as.

minLength1
type: "MEMBER"
FromInputRunAs object { type }

The acting member is read from an input when a run starts. Set in the Lightfield app.

type: "FROM_INPUT"
status: "ACTIVE" or "PAUSED"

PAUSED automations keep their triggers but start no runs.

One of the following:
"ACTIVE"
"PAUSED"
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
One of the following:
AgentStep object { id, name, prompt, 2 more }
id: string

Step identifier. Assigned by Lightfield.

name: string

Display name of the step.

minLength1
prompt: string

Instructions the agent follows in this step.

minLength1
type: "AGENT"
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the agent may use in this step. Defaults to none.

One of the following:
ToolPermission object { name, type, reason }
name: string

Name of the tool, matching the Lightfield app.

minLength1
type: "TOOL"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

McpPermission object { connector, tools, type, reason }
connector: string

Connector the tools are on. Must already be lowercase and trimmed.

minLength1
tools: array of string

Unique, trimmed names of the connector tools the step may call.

type: "MCP"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

CodeStep object { id, command, name, 3 more }
id: string

Step identifier. Assigned by Lightfield.

command: string

Bash command the step runs as written.

minLength1
name: string

Display name of the step.

minLength1
type: "CODE"
description: optional string

What the command does. Does not change what runs.

minLength1
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the command may use. Defaults to none.

One of the following:
APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

SleepStep object { id, duration, name, 2 more }
id: string

Step identifier. Assigned by Lightfield.

duration: number or string

How long to sleep before the next step, at most one year.

One of the following:
number
string
name: string

Display name of the step.

minLength1
type: "SLEEP"
unit: "MILLISECOND" or "SECOND" or "MINUTE" or 2 more

Unit of duration.

One of the following:
"MILLISECOND"
"SECOND"
"MINUTE"
"HOUR"
"DAY"
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
One of the following:
ManualTrigger object { type }
type: "MANUAL"
WebhookTrigger object { type, url, exampleResult }
type: "WEBHOOK"
url: string

URL that starts a run when it receives a POST request.

exampleResult: optional object { json, parsed }

A sample payload and the fields the steps read from it.

json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
One of the following:
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
parsed: array of object { path, label, value }
path: array of string
label: optional string
value: optional string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
ScheduledTrigger object { schedule, type }
schedule: object { cron, timezone }
cron: string

Cron expression: 5 fields, 6 with a leading seconds field, or a macro such as @daily. For example 0 9 * * 1-5.

minLength1
timezone: string

IANA timezone the cron is evaluated in.

minLength1
type: "SCHEDULED"
RecordCreatedTrigger object { objectType, type }
objectType: string
type: "RECORD_CREATED"
RecordUpdatedTrigger object { objectType, type, watchedFields, watchedRelationships }
objectType: string
type: "RECORD_UPDATED"
watchedFields: array of string
watchedRelationships: optional array of object { direction, key }
direction: "SOURCE" or "DESTINATION"

The endpoint occupied by the record whose changes start the run.

One of the following:
"SOURCE"
"DESTINATION"
key: string

Public relationship key, such as $contact or a custom relationship slug.

minLength1
SequenceReplyTrigger object { type }
type: "SEQUENCE_REPLY"
updatedAt: string

When the automation was last changed.

AutomationRetrieveResponse object { id, createdAt, description, 10 more }
id: string

Unique identifier of the automation.

createdAt: string

When the automation was created.

description: string

What the automation is meant to accomplish.

lastFailureAt: string

When its most recent failed run ended, test runs included; null if no run has failed.

lastRunAt: string

When its most recent run started, test runs included; null before the first run.

model: string

Model the agent steps run on.

name: string

Display name of the automation.

minLength1
objectType: "automation"

Always automation.

runAs: object { type } or object { memberId, type } or object { type }

Who the automation acts as.

One of the following:
WorkspaceRunAs object { type }

Runs with no acting member.

type: "WORKSPACE"
MemberRunAs object { memberId, type }
memberId: string

Member the automation runs as.

minLength1
type: "MEMBER"
FromInputRunAs object { type }

The acting member is read from an input when a run starts. Set in the Lightfield app.

type: "FROM_INPUT"
status: "ACTIVE" or "PAUSED"

PAUSED automations keep their triggers but start no runs.

One of the following:
"ACTIVE"
"PAUSED"
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
One of the following:
AgentStep object { id, name, prompt, 2 more }
id: string

Step identifier. Assigned by Lightfield.

name: string

Display name of the step.

minLength1
prompt: string

Instructions the agent follows in this step.

minLength1
type: "AGENT"
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the agent may use in this step. Defaults to none.

One of the following:
ToolPermission object { name, type, reason }
name: string

Name of the tool, matching the Lightfield app.

minLength1
type: "TOOL"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

McpPermission object { connector, tools, type, reason }
connector: string

Connector the tools are on. Must already be lowercase and trimmed.

minLength1
tools: array of string

Unique, trimmed names of the connector tools the step may call.

type: "MCP"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

CodeStep object { id, command, name, 3 more }
id: string

Step identifier. Assigned by Lightfield.

command: string

Bash command the step runs as written.

minLength1
name: string

Display name of the step.

minLength1
type: "CODE"
description: optional string

What the command does. Does not change what runs.

minLength1
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the command may use. Defaults to none.

One of the following:
APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

SleepStep object { id, duration, name, 2 more }
id: string

Step identifier. Assigned by Lightfield.

duration: number or string

How long to sleep before the next step, at most one year.

One of the following:
number
string
name: string

Display name of the step.

minLength1
type: "SLEEP"
unit: "MILLISECOND" or "SECOND" or "MINUTE" or 2 more

Unit of duration.

One of the following:
"MILLISECOND"
"SECOND"
"MINUTE"
"HOUR"
"DAY"
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
One of the following:
ManualTrigger object { type }
type: "MANUAL"
WebhookTrigger object { type, url, exampleResult }
type: "WEBHOOK"
url: string

URL that starts a run when it receives a POST request.

exampleResult: optional object { json, parsed }

A sample payload and the fields the steps read from it.

json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
One of the following:
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
parsed: array of object { path, label, value }
path: array of string
label: optional string
value: optional string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
ScheduledTrigger object { schedule, type }
schedule: object { cron, timezone }
cron: string

Cron expression: 5 fields, 6 with a leading seconds field, or a macro such as @daily. For example 0 9 * * 1-5.

minLength1
timezone: string

IANA timezone the cron is evaluated in.

minLength1
type: "SCHEDULED"
RecordCreatedTrigger object { objectType, type }
objectType: string
type: "RECORD_CREATED"
RecordUpdatedTrigger object { objectType, type, watchedFields, watchedRelationships }
objectType: string
type: "RECORD_UPDATED"
watchedFields: array of string
watchedRelationships: optional array of object { direction, key }
direction: "SOURCE" or "DESTINATION"

The endpoint occupied by the record whose changes start the run.

One of the following:
"SOURCE"
"DESTINATION"
key: string

Public relationship key, such as $contact or a custom relationship slug.

minLength1
SequenceReplyTrigger object { type }
type: "SEQUENCE_REPLY"
updatedAt: string

When the automation was last changed.

AutomationUpdateResponse object { id, createdAt, description, 10 more }
id: string

Unique identifier of the automation.

createdAt: string

When the automation was created.

description: string

What the automation is meant to accomplish.

lastFailureAt: string

When its most recent failed run ended, test runs included; null if no run has failed.

lastRunAt: string

When its most recent run started, test runs included; null before the first run.

model: string

Model the agent steps run on.

name: string

Display name of the automation.

minLength1
objectType: "automation"

Always automation.

runAs: object { type } or object { memberId, type } or object { type }

Who the automation acts as.

One of the following:
WorkspaceRunAs object { type }

Runs with no acting member.

type: "WORKSPACE"
MemberRunAs object { memberId, type }
memberId: string

Member the automation runs as.

minLength1
type: "MEMBER"
FromInputRunAs object { type }

The acting member is read from an input when a run starts. Set in the Lightfield app.

type: "FROM_INPUT"
status: "ACTIVE" or "PAUSED"

PAUSED automations keep their triggers but start no runs.

One of the following:
"ACTIVE"
"PAUSED"
steps: array of object { id, name, prompt, 2 more } or object { id, command, name, 3 more } or object { id, duration, name, 2 more }
One of the following:
AgentStep object { id, name, prompt, 2 more }
id: string

Step identifier. Assigned by Lightfield.

name: string

Display name of the step.

minLength1
prompt: string

Instructions the agent follows in this step.

minLength1
type: "AGENT"
permissions: optional array of object { name, type, reason } or object { connector, tools, type, reason } or object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the agent may use in this step. Defaults to none.

One of the following:
ToolPermission object { name, type, reason }
name: string

Name of the tool, matching the Lightfield app.

minLength1
type: "TOOL"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

McpPermission object { connector, tools, type, reason }
connector: string

Connector the tools are on. Must already be lowercase and trimmed.

minLength1
tools: array of string

Unique, trimmed names of the connector tools the step may call.

type: "MCP"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

CodeStep object { id, command, name, 3 more }
id: string

Step identifier. Assigned by Lightfield.

command: string

Bash command the step runs as written.

minLength1
name: string

Display name of the step.

minLength1
type: "CODE"
description: optional string

What the command does. Does not change what runs.

minLength1
permissions: optional array of object { scopes, type, reason } or object { domain, type, headers, 2 more }

What the command may use. Defaults to none.

One of the following:
APIPermission object { scopes, type, reason }
scopes: array of string

Lightfield API scopes the step may use, for example contacts:read. The API key must hold every scope it grants, and only a full-access key may grant *.

type: "API"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

NetworkPermission object { domain, type, headers, 2 more }
domain: string

Lowercase host the step may call, optionally followed by a path glob. Returns 422 for a scheme, query, fragment or surrounding whitespace.

minLength1
type: "NETWORK"
headers: optional map[string]

Headers added to every request this permission allows.

method: optional "GET" or "POST" or "PUT" or 2 more

Restricts the permission to one HTTP method.

One of the following:
"GET"
"POST"
"PUT"
"PATCH"
"DELETE"
reason: optional string

Why the step needs this permission. Null when none was given. Returns 422 for an empty or whitespace-only string.

SleepStep object { id, duration, name, 2 more }
id: string

Step identifier. Assigned by Lightfield.

duration: number or string

How long to sleep before the next step, at most one year.

One of the following:
number
string
name: string

Display name of the step.

minLength1
type: "SLEEP"
unit: "MILLISECOND" or "SECOND" or "MINUTE" or 2 more

Unit of duration.

One of the following:
"MILLISECOND"
"SECOND"
"MINUTE"
"HOUR"
"DAY"
triggers: array of object { type } or object { type, url, exampleResult } or object { schedule, type } or 3 more
One of the following:
ManualTrigger object { type }
type: "MANUAL"
WebhookTrigger object { type, url, exampleResult }
type: "WEBHOOK"
url: string

URL that starts a run when it receives a POST request.

exampleResult: optional object { json, parsed }

A sample payload and the fields the steps read from it.

json: map[string or number or boolean or 2 more] or array of string or number or boolean or 2 more
One of the following:
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
parsed: array of object { path, label, value }
path: array of string
label: optional string
value: optional string or number or boolean or 2 more
One of the following:
string
number
boolean
array of string or number or boolean or 2 more
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
map[string or number or boolean or 2 more]
One of the following:
string
number
boolean
array of JsonValue
One of the following:
string
number
boolean
array of unknown
unknown
One of the following:
string
number
boolean
array of unknown
unknown
ScheduledTrigger object { schedule, type }
schedule: object { cron, timezone }
cron: string

Cron expression: 5 fields, 6 with a leading seconds field, or a macro such as @daily. For example 0 9 * * 1-5.

minLength1
timezone: string

IANA timezone the cron is evaluated in.

minLength1
type: "SCHEDULED"
RecordCreatedTrigger object { objectType, type }
objectType: string
type: "RECORD_CREATED"
RecordUpdatedTrigger object { objectType, type, watchedFields, watchedRelationships }
objectType: string
type: "RECORD_UPDATED"
watchedFields: array of string
watchedRelationships: optional array of object { direction, key }
direction: "SOURCE" or "DESTINATION"

The endpoint occupied by the record whose changes start the run.

One of the following:
"SOURCE"
"DESTINATION"
key: string

Public relationship key, such as $contact or a custom relationship slug.

minLength1
SequenceReplyTrigger object { type }
type: "SEQUENCE_REPLY"
updatedAt: string

When the automation was last changed.