Skip to main content
POST
/
safari
/
automation
/
run
/
list
List Automation runs
curl --request POST \
  --url 'https://api.flashcat.cloud/safari/automation/run/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rule_id": "auto_7NnLzY2Qp8xS4kUaV3mR6b",
  "limit": 20,
  "trigger_kind": "schedule"
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "total": 1,
    "runs": [
      {
        "run_id": "taskrun_5oDvqiG64uur6sBNsTc4u",
        "kind": "automation_rule",
        "account_id": 10023,
        "rule_id": "auto_7NnLzY2Qp8xS4kUaV3mR6b",
        "trigger_kind": "schedule",
        "occurrence_key": "autotrg_6aKp3wT9mQ2xVc8bR1nY7z:1780630800000",
        "status": "succeeded",
        "attempts": 1,
        "started_at": 1780630800000,
        "completed_at": 1780630923456,
        "duration_ms": 123456,
        "error_code": "",
        "error_message": "",
        "stats_json": {},
        "result_json": {
          "session_id": "sess_f8oDvqiG64uur6sBNsTc4u"
        },
        "created_at": 1780630800000,
        "updated_at": 1780630923456
      }
    ]
  }
}

Restrictions

AspectValue
Rate limits1,000 requests/minute; 50 requests/second per account
PermissionsValid app_key; results are filtered to the caller’s visible scope

Authorizations

app_key
string
query
required

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json
rule_id
string
required

Target rule ID.

p
integer
default:1

Page number, 1-based.

limit
integer
default:20

Page size.

Required range: x <= 100
status
enum<string>

Run status filter.

Available options:
queued,
running,
retrying,
succeeded,
partial,
failed,
skipped,
abandoned
trigger_kind
enum<string>

Trigger kind filter.

Available options:
schedule,
debug,
manual,
http_post,
oncall_incident
started_after_ms
integer<int64>

Start-time lower bound, Unix milliseconds.

started_before_ms
integer<int64>

Start-time upper bound, Unix milliseconds.

Response

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
object

Endpoint-specific payload. See each operation's 200 response schema.