Skip to content

Farkitect is in early access. New features arrive most weeks, and these pages are updated with them. See What's New for the latest.

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.

{
"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, relationship or view, then .created, .updated or .deleted. Every kind of view is view; item.kind says which (diagram, catalog, board or chart), as in deletions.
  • One event per item per change. An element renamed and given two values in one go is one element.updated, with changes: ["name", "properties"]. Something made and changed in one go is just .created.
  • changes names what changed, by the API’s field names: name, notes, packageId, ownerId, sourceId, targetId, type, properties (one or more values) and attachment (its file). For a view: name, packageId, contents (a diagram’s shapes, lines and links; a board’s card appearances) and settings (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. user is a person in the app, apiKey a program, with the key’s name, and system Farkitect itself, such as a metamodel upgrade.

New event types and new names in changes may be added; ignore ones you don’t recognise.

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.

  1. Start: read everything you need once, as usual. Note the time you started.
  2. Follow: call GET /v1/projects/{projectId}/events?since=<that time>, then each nextCursor in turn. A page always has a nextCursor. When hasMore is 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.
  3. Act: for each event, read the item (or use current), or remove it for .deleted.
Terminal window
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: since was more than 30 days ago, so some events are gone. Read everything again with updatedSince, then follow events from the time you started.

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.

Farkitect

Model anything.

“Welcome back — your diagrams have been plotting without you.”


Release 385 · 27 Nov 2026

Top packages: Inclusion and Sharing; Create New Version; Delete from Project

Release
385
Released
27 Nov 2026, 21:29 UTC
Built
27 Nov 2026, 21:30 UTC
Environment
Production
Surface
Docs
Commit
a5968f3
Branch
main