Events
GET /v1/projects/{projectId}/events lists what changed in a project, oldest first: every package, element, relationship and view made, changed or deleted, however it happened (in the app, by the API, by an import). A program keeping another system in step reads it every so often and sees only what’s new since last time.
Events are kept 30 days, and recorded while your organisation has a working API key: from the moment you make your first key. Any key that can read the project can read its events, a viewer’s too.
To have each event sent to your program as it happens instead of asking for them, use webhooks.
An event
Section titled “An event”{ "object": "event", "id": "k97…", "type": "element.updated", "occurredAt": "2026-11-12T03:15:02.120Z", "projectId": "k57…", "item": { "kind": "element", "id": "jn7…" }, "changes": ["name", "properties"], "actor": { "kind": "user", "name": "Rich Anderson" }}type:package,element,relationshiporview, then.created,.updatedor.deleted. Every kind of view isview;item.kindsays which (diagram,catalog,boardorchart), as in deletions.- One event per item per change. An element renamed and given two values in one go is one
element.updated, withchanges: ["name", "properties"]. Something made and changed in one go is just.created. changesnames what changed, by the API’s field names:name,notes,packageId,ownerId,sourceId,targetId,type,properties(one or more values) andattachment(its file). For a view:name,packageId,contents(a diagram’s shapes, lines and links; a board’s card appearances) andsettings(anything else about it). A diagram’s changes are recorded when it’s saved.- Not an event: arranging rows in the Explorer, which changes only the order shown.
actor: who made the change.useris a person in the app,apiKeya program, with the key’s name, andsystemFarkitect itself, such as a metamodel upgrade.
New event types and new names in changes may be added; ignore ones you don’t recognise.
The item as it is now
Section titled “The item as it is now”An event says what changed, not the values. Add include=item to have each item as it is now, under current, in the same shape a GET on it gives (an element with its values, for example). A deleted item’s current is null. With include=item a page holds at most 50 events.
current is the item now, not as it was when the event happened: two quick changes to one element both show its latest state.
Following a project
Section titled “Following a project”- Start: read everything you need once, as usual. Note the time you started.
- Follow: call
GET /v1/projects/{projectId}/events?since=<that time>, then eachnextCursorin turn. A page always has anextCursor. WhenhasMoreis false you’re up to date: keep that cursor, and later call again with?cursor=…to get only what’s new. Keep it between runs of your program. - Act: for each event, read the item (or use
current), or remove it for.deleted.
curl "https://api.farkitect.com/v1/projects/PROJECT_ID/events?since=2026-11-12T00:00:00Z&types=element.created,element.updated,element.deleted" \ -H "Authorization: Bearer $FARKITECT_API_KEY"- A change shows about five seconds after it’s made. The newest few seconds are held back so that a cursor never steps past a change still being recorded.
- Filter with
types, separated by commas. - Expect repeats. Treat each event as “this item may have changed”: reading it twice does no harm.
410 resync_required:sincewas more than 30 days ago, so some events are gone. Read everything again withupdatedSince, then follow events from the time you started.
Events or updatedSince?
Section titled “Events or updatedSince?”updatedSince on the elements and relationships lists gives what’s different now; it doesn’t see deletions (they’re in GET …/deletions) or views. Events cover everything, in order, with who did it. Use updatedSince for a first full read, and events from then on.