Automations API¶
Create automations from templates, run them, read their results, and manage schedules. See Automations.
Paths are relative to https://<your-atlas-host>/api/v1. For the API key and headers every
request needs, see Authentication.
Endpoint |
What it does |
|---|---|
List automations in a workspace |
|
Create an automation from a library template |
|
List the automation library templates |
|
Extract a replayable workflow from a chat conversation |
|
Create an automation (workflow) from a conversation extraction |
|
Get an automation by ID |
|
Update an automation |
|
Delete an automation |
|
Activate an automation so it runs on its schedule |
|
Pause an automation |
|
Start a run of an automation now; returns the run id |
|
List an automation’s recent runs |
|
Get a run, with its status, output and findings |
|
List automation packs, bundles of templates created together |
|
Create every automation in a pack in one step |
|
List automation packs created in the organization |
|
Get an automation pack instance by ID |
|
Create or update a schedule for a target |
|
List all schedules for a target |
|
Delete a schedule |
|
Pause a schedule, keeping its configuration |
|
Resume a paused schedule |
List automations¶
GET /automations/
List automations in a workspace.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
query |
UUID |
Yes |
|
query |
boolean |
|
|
query |
string |
|
|
query |
string |
|
|
query |
string |
|
|
query |
integer |
|
|
query |
integer |
Response A list of objects:
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
Create an automation from a template¶
POST /automations/
Create an automation from a library template.
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
UUID |
Yes |
|
|
string |
Yes |
A template’s |
|
string |
Yes |
|
|
string |
||
|
object |
Values for the template’s parameters, keyed by name; missing ones use the template’s defaults. |
|
|
string |
|
|
|
string |
Five-field cron schedule in UTC, such as |
|
|
list of string |
For |
|
|
boolean |
Post each run’s output and findings to a new chat conversation. |
|
|
boolean |
Notify the automation’s creator when a run finishes. |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
List automation templates¶
GET /automations/templates/
List the automation library templates.
Response A list of objects:
Field |
Type |
|---|---|
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
integer |
Extract a workflow from a conversation¶
POST /automations/workflows/extract/
Extract a replayable workflow from a chat conversation.
Request body
Field |
Type |
Required |
|---|---|---|
|
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
string |
|
string |
|
string |
|
list of string |
|
list of object |
Create an automation from a conversation¶
POST /automations/workflows/
Create an automation (workflow) from a conversation extraction.
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
UUID |
Yes |
|
|
UUID |
Yes |
The chat conversation the workflow comes from. |
|
string |
Yes |
|
|
string |
||
|
string |
Yes |
Instructions the agent follows on each run, with |
|
object |
Values for the prompt’s |
|
|
list of string |
Tool names the agent should prefer; unknown names are ignored. |
|
|
integer |
Stored with the automation; runs do not use it yet. |
|
|
string |
|
|
|
string |
Five-field cron schedule in UTC, such as |
|
|
boolean |
Post each run’s output and findings to a new chat conversation. |
|
|
boolean |
Notify the automation’s creator when a run finishes. |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
Get automation¶
GET /automations/{automation_id}/
Get an automation by ID.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
Update automation¶
PATCH /automations/{automation_id}/
Update an automation.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Request body
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
string |
A Heroicons icon name, such as |
|
string |
Instructions the agent follows on each run, with |
|
object |
Values for the prompt’s |
|
string |
A full prompt that replaces the filled-in template. Empty uses the template. |
|
list of string |
Tool names the agent should prefer; unknown names are ignored. |
|
integer |
Stored with the automation; runs do not use it yet. |
|
string |
AI model for runs, as |
|
string |
|
|
string |
Five-field cron schedule in UTC, such as |
|
list of string |
For |
|
boolean |
Post each run’s output and findings to a new chat conversation. |
|
boolean |
Notify the automation’s creator when a run finishes. |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
Delete automation¶
DELETE /automations/{automation_id}/
Delete an automation.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
Activate automation¶
POST /automations/{automation_id}/activate/
Activate an automation so it runs on its schedule.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
Deactivate automation¶
POST /automations/{automation_id}/deactivate/
Pause an automation.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
list of string |
|
|
string |
|
|
object |
|
|
string |
|
|
list of string |
|
|
integer |
|
|
string |
|
|
boolean |
|
|
boolean |
|
|
boolean |
|
|
boolean |
Whether a user wrote the prompt rather than a template. |
|
string |
How it was created: |
|
UUID |
|
|
UUID |
|
|
datetime |
|
|
string |
|
|
integer |
|
|
integer |
Failed runs in a row. At 5 the automation pauses; activating it resets this. |
|
datetime |
|
|
datetime |
Run an automation now¶
POST /automations/{automation_id}/run/
Start a run of an automation now; returns the run id.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
List automation runs¶
GET /automations/{automation_id}/runs/
List an automation’s recent runs.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
|
query |
integer |
Response A list of objects:
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
UUID |
|
|
UUID |
|
|
string |
What started the run: |
|
string |
The event that started the run; empty otherwise. |
|
string |
The prompt exactly as the run used it. |
|
string |
The run’s written result. |
|
list of object |
Issues the run recorded, each with |
|
list of object |
|
|
object |
|
|
integer |
|
|
UUID |
|
|
string |
|
|
string |
|
|
datetime |
|
|
datetime |
Get an automation run¶
GET /automations/{automation_id}/runs/{run_id}/
Get a run, with its status, output and findings.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
|
path |
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
UUID |
|
|
UUID |
|
|
string |
What started the run: |
|
string |
The event that started the run; empty otherwise. |
|
string |
The prompt exactly as the run used it. |
|
string |
The run’s written result. |
|
list of object |
Issues the run recorded, each with |
|
list of object |
|
|
object |
|
|
integer |
|
|
UUID |
|
|
string |
|
|
string |
|
|
datetime |
|
|
datetime |
List automation packs¶
GET /automations/packs/
List automation packs, bundles of templates created together.
Response A list of objects:
Field |
Type |
|---|---|
|
string |
|
string |
|
string |
|
string |
|
string |
|
integer |
Create automations from a pack¶
POST /automations/packs/
Create every automation in a pack in one step.
Request body
Field |
Type |
Required |
|---|---|---|
|
UUID |
Yes |
|
string |
Yes |
|
string |
Yes |
|
object |
|
|
object |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
UUID |
|
object |
|
list of UUID |
|
datetime |
|
datetime |
List pack instances¶
GET /automations/packs/instances/
List automation packs created in the organization.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
query |
UUID |
Yes |
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
UUID |
|
object |
|
list of UUID |
|
datetime |
|
datetime |
Get pack instance¶
GET /automations/packs/instances/{instance_id}/
Get an automation pack instance by ID.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
UUID |
|
object |
|
list of UUID |
|
datetime |
|
datetime |
Create or update a schedule¶
PUT /schedules/
Create or update a schedule for a target.
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
What is scheduled: |
|
UUID |
Yes |
The data source or automation ID. |
|
string |
Yes |
|
|
string |
Yes |
Five-field cron schedule in UTC, such as |
|
object |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
|
object |
|
datetime |
|
datetime |
List schedules¶
GET /schedules/{target_type}/{target_id}
List all schedules for a target.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
string |
Yes |
|
path |
UUID |
Yes |
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
|
object |
|
datetime |
|
datetime |
Delete schedule¶
DELETE /schedules/{target_type}/{target_id}/{task_type}
Delete a schedule.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
string |
Yes |
|
path |
UUID |
Yes |
|
path |
string |
Yes |
Response
The raw file content.
Pause schedule¶
POST /schedules/{schedule_id}/pause
Pause a schedule, keeping its configuration.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
|
object |
|
datetime |
|
datetime |
Resume schedule¶
POST /schedules/{schedule_id}/resume
Resume a paused schedule.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
UUID |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
|
object |
|
datetime |
|
datetime |
What’s next?¶
API overview: authentication, worked examples, and error handling
Webhooks: get events pushed to your systems instead of polling
Service accounts: create the key an integration uses