Factuarea APIDevelopers

List the versions of an automation rule

Browse the sealed versions of the definition of a rule, from the most recent to the oldest.

  • Every edit seals a version and every run keeps a pointer to the one it executed, so this is how you reconstruct what a rule looked like when it ran.

  • IMPORTANT — the cursor of THIS listing is not a UUID.

  • It is the only listing of the automation surface whose read path still paginates by offset, so next_cursor carries an opaque token of a different shape (a page number as a string).

  • Treat it as strictly opaque: pass back verbatim the value you received and never build, parse or validate one yourself.

  • The envelope is the canonical one, limit behaves as everywhere else, and ending_before steps one page back.

  • A rule of another company returns 200 with an empty list instead of 404 — an empty page tells an attacker nothing about whether the rule exists.

GET
/automations/rules/{rule}/versions
AuthorizationBearer <token>

In: header

Path Parameters

rule*string

Query Parameters

limit?integer

Number of versions to return. Integer between 1 and 100. Defaults to 25. A non-integer or out-of-range value returns 400.

Default25
Range1 <= value <= 100
starting_after?string

Cursor for forward pagination: pass back the next_cursor of the previous page. Treat it as opaque — unlike most v1 listings it is a numeric string, not a UUID v7, because the version history paginates by offset. Never build one yourself. A malformed cursor returns 400.

Match^[0-9]+$
ending_before?string

Cursor for backward pagination: pass back a cursor you were given to step one page back (it never goes past the first page). Same opaque numeric string as starting_after. A malformed cursor returns 400.

Match^[0-9]+$

Headers

Factuarea-Version?string

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.

Formatdate
X-Active-Profile?string

Operate on behalf of a child company (gestoría master key): pass its public id (UUID v7) and the request runs against that child's data without changing the key's scope, tier or environment (omit to use the key's own company). Invalid UUID → 400 parameter_invalid_uuid; unknown or non-owned id → 404 profile_not_found. See the Acting on behalf guide.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json