List the versions of an automation rule
List the sealed versions of a rule definition, newest first.
- The cursor of this listing is an opaque page-number token: pass next_cursor back verbatim, never build it.
- A rule of another company returns 200 with an empty list, not 404.
Request
- Base URL: https://api.factuarea.com/v1
- URL: https://api.factuarea.com/v1/companies/{company}/automations/rules/{rule}/versions
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Path parameters
Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).
Public identifier (UUID v7) of the automation rule.
Query parameters
Number of versions to return, between 1 and 100 (default 25).
Cursor for forward pagination: the next_cursor of the previous page, an opaque numeric string (not a UUID v7). A malformed cursor returns 400.
Cursor for backward pagination: a cursor you were given, to step one page back (never past the first page).
Headers
Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.
Response
Example response
{
"data": [
{
"id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a62",
"automation_rule_id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a61",
"version": 2,
"trigger_type": "invoice.paid",
"conditions": {
"field": "total",
"operator": "gte",
"value": 1000
},
"actions": [
{
"type": "notify_in_app",
"order": 0,
"parameters": {
"recipient_type": "role",
"role": "admin",
"category": "invoice",
"title": "Cobro grande",
"message": "Se ha cobrado una factura de 1000 EUR o más."
}
}
],
"created_at": "2026-03-16T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a0c"
}Changes
No recorded changes to this operation across all 1 revision of this API.