Skip to content

List an automation's firings

GET
/v1/automations/{id}/firings
curl --request GET \
--url 'https://api.pixonaut.app/v1/automations/example/firings?page=1&pageSize=50&status=all' \
--header 'Authorization: Bearer <token>'

Operation ID: automations.firings

Newest first: each firing’s state, what it acts on, the step it got to and why, when it started, its version and whose grants it ran with; with how many each status filter holds, the search applied.

id
required
string
page

The page to read, from 1; the first when left out.

integer
default: 1 >= 1 <= 100000

The page to read, from 1; the first when left out.

pageSize
integer
default: 50 >= 1 <= 200
status

Only the firings in this state; done is one that succeeded.

string
default: all
Allowed values: all failed waiting paused done

Only the firings in this state; done is one that succeeded.

q

Only the firings that touched this design, print file or order, by its id.

string
>= 1 characters <= 200 characters

Only the firings that touched this design, print file or order, by its id.

A page of the automation’s firings

Media typeapplication/json
object
counts
required

How many firings each status filter holds.

object
all
required
number
done
required
number
failed
required
number
paused
required
number
waiting
required
number
firings
required
Array<object>
object
finishedAt
required
number | null
id
required
string
ranAs
required
One of:
object
kind
required
string
Allowed values: member
name
required
string | null
userId
required
string
reason
required

Why it failed, paused or was cancelled, in Pixonaut’s words. For an MCP key, a reason that may carry a printshop’s own answer (an email’s or a printshop step’s) is replaced: it can name the order’s customer.

string | null
startedAt
required
number
state
required
string
step
required

The step it got to, and that step’s reason; null before any. For an MCP key, a reason that may carry a printshop’s own answer (an email’s or a printshop step’s) is replaced: it can name the order’s customer.

object
reason
required
string | null
state
required
string
stepId
required
string
type
required
string
subject
required

What it acts on, by id.

object
designId
required
string | null
orderId
required
string | null
printId
required
string | null
templateName
required

The name of the template its design was made from, which is how a design is named; null once the design is gone.

string | null
touched
required

Every design, print file and order id it touched.

Array<string>
version
required

The version it runs on.

number
page
required
number
pageSize
required
number
total
required

How many the chosen filter holds.

number

Examples

Exampleexample

Example

{
"counts": {
"all": 42,
"done": 39,
"failed": 1,
"paused": 1,
"waiting": 1
},
"firings": [
{
"finishedAt": null,
"id": "fir_1a2b3c4d5e6f",
"ranAs": {
"kind": "member",
"name": "Ada Lewis",
"userId": "u_8b1d2c3e4f5a"
},
"reason": "It reached its limit of 50 spend actions in 24 hours.",
"startedAt": 1760000300000,
"state": "paused",
"step": {
"reason": "It reached its limit of 50 spend actions in 24 hours.",
"state": "paused",
"stepId": "order",
"type": "place_order"
},
"subject": {
"designId": "des_2b4d8a9f6c1e",
"orderId": "ord_6c1d2e3f4a5b",
"printId": "prt_9e1b3d5f7a2c",
"templateName": "Classic Tee"
},
"touched": [
"des_2b4d8a9f6c1e",
"prt_9e1b3d5f7a2c",
"ord_6c1d2e3f4a5b"
],
"version": 3
},
{
"finishedAt": 1760000360000,
"id": "fir_2b3c4d5e6f7a",
"ranAs": {
"kind": "member",
"name": "Ada Lewis",
"userId": "u_8b1d2c3e4f5a"
},
"reason": null,
"startedAt": 1760000300000,
"state": "succeeded",
"step": {
"reason": null,
"state": "done",
"stepId": "order",
"type": "place_order"
},
"subject": {
"designId": "des_3c5e9a0b7d2f",
"orderId": "ord_7d2e3f4a5b6c",
"printId": "prt_9e1b3d5f7a2c",
"templateName": "Classic Tee"
},
"touched": [
"des_3c5e9a0b7d2f",
"prt_9e1b3d5f7a2c",
"ord_7d2e3f4a5b6c"
],
"version": 3
}
],
"page": 1,
"pageSize": 50,
"total": 42
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: feature_disabled, origin_forbidden, forbidden

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: automation_not_found

Media typeapplication/json
object
error
required
string

Examples

Exampleautomation_not_found

automation_not_found

{
"error": "automation_not_found"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: invalid_query

Media typeapplication/json
object
error
required
string

Examples

Exampleinvalid_query

invalid_query

{
"error": "invalid_query"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors