Auditmark
API referencetemplates/families/fid/versions

List Family Versions

GET
/templates/families/{fid}/versions

A family's version history, newest first, for the editor's History panel.

Read-only and RLS-scoped like the other family reads, so an out-of-org caller simply sees an empty list. Ordered by version rather than by a timestamp: published_at is null for drafts and approximate for versions archived before migration 0120, so it cannot carry the ordering.

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Path Parameters

fid*Fid

Response Body

application/json

application/json

curl -X GET "https://example.com/templates/families/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "version": 0,    "status": "string",    "is_current": true,    "created_at": "2019-08-24T14:15:22Z",    "published_at": "2019-08-24T14:15:22Z"  }]
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}