Automations
11 operations, generated from the OpenAPI document.
A base's automations, oldest first (creators and up)
GET /api/bases/{baseId}/automations
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Responses
200Successautomationsarray of object requiredidstring (uuid) requiredbaseIdstring (uuid) requirednamestring requireddescriptionstring requiredenabledboolean requireddisabledReason"creator_access" | null requiredtriggerobject requiredactionsarray of object requiredcreatedBystring (uuid) | null requiredlastRunAtstring (date-time) | null requiredlastRunStatus"succeeded" | "failed" | "skipped" | null requirednextRunAtstring (date-time) | null requiredwebhookUrlstring | null requiredwebhookSampleobject | null requiredreceivedAtstring (date-time) requiredbodyany required
createdAtstring (date-time) requiredupdatedAtstring (date-time) requiredrunCountinteger required
scriptsobject requiredavailableboolean requiredreason"disabled" | "plan" | null requiredlimitsobject | null requiredtimeoutSecondsinteger requiredcpuSecondsinteger requiredmemoryMbinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Create an automation: a trigger and up to 25 actions, run as you
POST /api/bases/{baseId}/automations
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Request body
namestring requireddescriptionstringtriggerobject requiredactionsarray of objectenabledboolean
Responses
201Successidstring (uuid) requiredbaseIdstring (uuid) requirednamestring requireddescriptionstring requiredenabledboolean requireddisabledReason"creator_access" | null requiredtriggerobject requiredactionsarray of object requiredcreatedBystring (uuid) | null requiredlastRunAtstring (date-time) | null requiredlastRunStatus"succeeded" | "failed" | "skipped" | null requirednextRunAtstring (date-time) | null requiredwebhookUrlstring | null requiredwebhookSampleobject | null requiredreceivedAtstring (date-time) requiredbodyany required
createdAtstring (date-time) requiredupdatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
An automation
GET /api/bases/{baseId}/automations/{automationId}
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requirednamestring requireddescriptionstring requiredenabledboolean requireddisabledReason"creator_access" | null requiredtriggerobject requiredactionsarray of object requiredcreatedBystring (uuid) | null requiredlastRunAtstring (date-time) | null requiredlastRunStatus"succeeded" | "failed" | "skipped" | null requirednextRunAtstring (date-time) | null requiredwebhookUrlstring | null requiredwebhookSampleobject | null requiredreceivedAtstring (date-time) requiredbodyany required
createdAtstring (date-time) requiredupdatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Change an automation, or turn it on or off (turning it on runs it as you)
PATCH /api/bases/{baseId}/automations/{automationId}
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
Request body
namestringdescriptionstringtriggerobjectactionsarray of objectenabledboolean
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requirednamestring requireddescriptionstring requiredenabledboolean requireddisabledReason"creator_access" | null requiredtriggerobject requiredactionsarray of object requiredcreatedBystring (uuid) | null requiredlastRunAtstring (date-time) | null requiredlastRunStatus"succeeded" | "failed" | "skipped" | null requirednextRunAtstring (date-time) | null requiredwebhookUrlstring | null requiredwebhookSampleobject | null requiredreceivedAtstring (date-time) requiredbodyany required
createdAtstring (date-time) requiredupdatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Delete an automation and its run history
DELETE /api/bases/{baseId}/automations/{automationId}
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
Responses
204Success, no content401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
The base's failed runs of the last 30 days not retried yet, newest first
GET /api/bases/{baseId}/automation-runs/failed
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
limit | query | integer | no |
Responses
200Successrunsarray of object requiredidstring (uuid) requiredautomationIdstring (uuid) requiredstatus"succeeded" | "failed" | "skipped" requiredmode"live" | "test" | "retry" requiredskipReason"loop" | "quota" | null requiredretryOfstring (uuid) | null requiredtriggerany requiredstepsarray of object requiredindexinteger requiredtype"createRecord" | "updateRecord" | "findRecords" | "sendEmail" | "httpRequest" | "slackMessage" | "runScript" requiredstatus"succeeded" | "failed" | "skipped" requiredinputany requiredoutputany requirederrorstring | null requireddurationMsinteger required
errorstring | null requireddepthinteger requiredtriggeredBystring (uuid) | null requireddurationMsinteger requiredcreatedAtstring (date-time) requiredautomationNamestring required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
An automation's runs of the last 30 days, newest first, with each step
GET /api/bases/{baseId}/automations/{automationId}/runs
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
limit | query | integer | no |
status | query | "succeeded" | "failed" | "skipped" | no |
Responses
200Successrunsarray of object requiredidstring (uuid) requiredautomationIdstring (uuid) requiredstatus"succeeded" | "failed" | "skipped" requiredmode"live" | "test" | "retry" requiredskipReason"loop" | "quota" | null requiredretryOfstring (uuid) | null requiredtriggerany requiredstepsarray of object requiredindexinteger requiredtype"createRecord" | "updateRecord" | "findRecords" | "sendEmail" | "httpRequest" | "slackMessage" | "runScript" requiredstatus"succeeded" | "failed" | "skipped" requiredinputany requiredoutputany requirederrorstring | null requireddurationMsinteger required
errorstring | null requireddepthinteger requiredtriggeredBystring (uuid) | null requireddurationMsinteger requiredcreatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Test an automation: its trigger with a sample record (or webhook request) and its actions for real, as you
POST /api/bases/{baseId}/automations/{automationId}/test
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
Request body
recordIdstring (uuid)
Responses
200Successidstring (uuid) requiredautomationIdstring (uuid) requiredstatus"succeeded" | "failed" | "skipped" requiredmode"live" | "test" | "retry" requiredskipReason"loop" | "quota" | null requiredretryOfstring (uuid) | null requiredtriggerany requiredstepsarray of object requiredindexinteger requiredtype"createRecord" | "updateRecord" | "findRecords" | "sendEmail" | "httpRequest" | "slackMessage" | "runScript" requiredstatus"succeeded" | "failed" | "skipped" requiredinputany requiredoutputany requirederrorstring | null requireddurationMsinteger required
errorstring | null requireddepthinteger requiredtriggeredBystring (uuid) | null requireddurationMsinteger requiredcreatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Run a failed run again from its trigger data, as you (once per run)
POST /api/bases/{baseId}/automations/{automationId}/runs/{runId}/retry
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
runId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredautomationIdstring (uuid) requiredstatus"succeeded" | "failed" | "skipped" requiredmode"live" | "test" | "retry" requiredskipReason"loop" | "quota" | null requiredretryOfstring (uuid) | null requiredtriggerany requiredstepsarray of object requiredindexinteger requiredtype"createRecord" | "updateRecord" | "findRecords" | "sendEmail" | "httpRequest" | "slackMessage" | "runScript" requiredstatus"succeeded" | "failed" | "skipped" requiredinputany requiredoutputany requirederrorstring | null requireddurationMsinteger required
errorstring | null requireddepthinteger requiredtriggeredBystring (uuid) | null requireddurationMsinteger requiredcreatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
A new URL for a webhook-received trigger; the old one stops working at once
POST /api/bases/{baseId}/automations/{automationId}/webhook-url
Access: base:manage_automations on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
automationId | path | string (uuid) | yes |
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requirednamestring requireddescriptionstring requiredenabledboolean requireddisabledReason"creator_access" | null requiredtriggerobject requiredactionsarray of object requiredcreatedBystring (uuid) | null requiredlastRunAtstring (date-time) | null requiredlastRunStatus"succeeded" | "failed" | "skipped" | null requirednextRunAtstring (date-time) | null requiredwebhookUrlstring | null requiredwebhookSampleobject | null requiredreceivedAtstring (date-time) requiredbodyany required
createdAtstring (date-time) requiredupdatedAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Click a record's button that runs automations (editors who may edit the record)
POST /api/tables/{tableId}/records/{recordId}/buttons/{fieldId}
Access: record:update on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
recordId | path | string (uuid) | yes |
fieldId | path | string (uuid) | yes |
Responses
200Successstartedinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)