Trigger an automation

The /trigger endpoint starts a cloud run of a saved No-Code Tool automation. The automation must already exist in your account and be saved to the cloud. The call returns immediately with a viewer link, or with a queued/error response if the run could not start.

Request


POST /api/v3/trigger
ParameterTypeRequiredDescription
keystringYesYour API key. See Authentication.
namestringYesExact name of the automation, as it appears in the Dashboard. Case-sensitive and whitespace-sensitive.
dataarrayNoInput data passed into the automation. See Pass input data for the shape.

Response


The response shape depends on what happened. Three variants:

Success: run started

{
  "OPEN LINK IN BROWSER": "<LINK_TO_RUN_VIEWER>"
}
FieldTypeDescription
OPEN LINK IN BROWSERstringURL to a live noVNC view of the cloud browser. Useful for watching the run in real time or sharing a screencast with support.

Queued: run accepted but waiting for a slot

{
  "status": "queued",
  "message": "Axiom could not start due to a lack of available resources. The task has been queued and will retry in five minutes."
}
FieldTypeDescription
statusstringqueued when the call was accepted but no concurrency slot is free yet.
messagestringHuman-readable description of what's happening and when the run will be retried.

See Queue and concurrency for details on how queueing works.

Error: run did not start

{
  "status": "error",
  "message": "Task not found, please check the name and try again."
}
FieldTypeDescription
statusstringerror when the call failed.
messagestringDescription of what went wrong. See Errors below for common messages.

Example


curl -X POST https://lar.axiom.ai/api/v3/trigger \
  -H "Content-Type: application/json" \
  -d '{
    "key": "your-api-key-here",
    "name": "My First Automation"
  }'

With input data:

curl -X POST https://lar.axiom.ai/api/v3/trigger \
  -H "Content-Type: application/json" \
  -d '{
    "key": "your-api-key-here",
    "name": "Scrape product page",
    "data": [
      ["url"],
      ["https://example.com/product/1"],
      ["https://example.com/product/2"]
    ]
  }'

data is a 2D array of [row][col]. The first row is typically a header. See Pass input data for the full format and how to consume it inside an automation with the Receive data from another app step.

Errors


ResponseCause
Task not found, please check the name and try again.The name doesn't match any automation in your account. Almost always a case or whitespace mismatch.
Invalid keyThe key is missing or doesn't match an active API key. Generate a new one in the Dashboard.
Quota exceededYour account has used its full cloud runtime allowance for the billing period. See Check remaining runtime.

Notes


  • Triggering a run never returns a "concurrency limit" error. If your account is already at its concurrent-run limit, the new run is queued and the call returns a queued response (see above). See Queue and concurrency.
  • To track a run after triggering, poll /run-data with the same name you triggered. It returns the current status of that automation's most recent run.
  • Names are matched exactly. My Automation, my automation, and My Automation (two spaces) are three different names. If you keep getting Task not found, copy the name directly from the Dashboard rather than retyping it.
  • Only the latest saved version of the automation runs. There's no way to pin to an older revision via the API today.