API changelog
Every change to the API, newest first. v1 is a preview until it is declared stable: most changes are additions (new endpoints, fields, error codes or values), which a program that ignores what it doesn’t recognise keeps working through, but a change may also be Breaking, and is then marked so. See Versions. Changes to the rest of Farkitect are in What’s New.
Release 384: views’ permanent ids in events
Section titled “Release 384: views’ permanent ids in events”An addition.
- An event about a diagram, catalog, board or chart view now has the view’s permanent id in
item.uid, in webhook deliveries too. It was null for views; events recorded earlier keep null.
Release 383: included models, and views’ permanent ids
Section titled “Release 383: included models, and views’ permanent ids”Additions.
- A package has
included: on a model (a top-level package) included from another project of the organisation, the project it comes from, the project that defines it, the version it holds and its state; null otherwise. In every package the API returns. See Included metamodels, which models follow. - Writes to an included model, or to anything in it, are refused with
403 forbidden, saying to change it in the project it comes from. Relationships from the project’s own elements to its elements are allowed, as in the app. - A view has
uid, its permanent id, andoriginUid(on an included model’s view, the original’s). InGET /v1/projects/{projectId}/viewsandGET /v1/diagrams/{diagramId}. originUidon packages, elements and relationships is now set on an included model’s items: the original’suid.
Release 379: integrity messages for values
Section titled “Release 379: integrity messages for values”No change to any field.
- In
GET /v1/projects/{projectId}/integrity, avalue-does-not-fitviolation’smessagenow says what is wrong with that value (for example, a date and time with no time zone), instead of the general explanation every such violation had.
Release 377: included metamodels
Section titled “Release 377: included metamodels”Additions.
- A metamodel has
included: for one included from another project, the project it comes from, the project that defines it, the version it holds and its state; null for the project’s own. InGET /v1/projects/{projectId}/metamodelsandGET /v1/metamodels/{metamodelId}. See Included metamodels.
Release 374: relationships between models
Section titled “Release 374: relationships between models”Additions; one rule loosened.
- A relationship may now join elements of two models of a project.
POST …/relationshipsandPATCHwithsourceIdortargetIdno longer refuse that; the type must be from a metamodel that both ends’ models import. Where it’s kept follows the app: in the source’s package, or inpackageIdwhen that is in the source’s model. - Each end of a relationship (
source,target) has amodel: the model it is in, byidandname. In every relationship the API returns: lists, single reads, writes, a package’s contents, and events and webhook deliveries with the item. - A move no longer refuses to leave a relationship between two models; a relationship whose ends both leave its model moves with its source, as in the app.
Release 370: permanent ids
Section titled “Release 370: permanent ids”Additions.
- Every package, element and relationship has a
uid, its permanent id, which never changes: a Restore Project, a Replace or FarkiBot’s Modify can change an item’sid, never itsuid. Store theuidto find an item again later. AlsooriginUid, null for now. See Ids and permanent ids. ?uid=onGET /v1/projects/{projectId}/elements,…/packagesand…/relationships: the item with that permanent id, whatever itsidis now.- An event’s
itemhas auidbeside itsid(null for a view), in webhook deliveries too.
Release 363: webhooks
Section titled “Release 363: webhooks”Additions.
POST /v1/webhook-endpointsand its calls: have each event posted to your own address as it happens, signed in the Standard Webhooks format, retried for about a day and a half, with a delivery log, pings, retries and secret rotation. Managed with a whole-organisation key that may manage the organisation’s webhooks. See Webhooks.
Release 362: events
Section titled “Release 362: events”Additions.
GET /v1/projects/{projectId}/events: every change to a project’s packages, elements, relationships and views, oldest first, however it was made, with what changed and who made it; kept 30 days, recorded while the organisation has a working key. Filter bytypes;include=itemadds each item as it is now. Its cursor is always given, so a program up to date keeps it and asks again later. See Events.
Release 361: tidied before others build on it
Section titled “Release 361: tidied before others build on it”One addition; one removal (Breaking, for a program that reads it).
- An element type’s new
attachmentsays what its elements may have attached:image,file, or null. See What an element can have attached. - Breaking: the key’s
limits(GET /v1/me) no longer includeimagesPerMinutePerOrganizationandimagesAtOnce. They were for drawing diagram images on the server, which was set aside; drawing data took its place. - The docs now say to match an element’s values on
propertyTypeIdrather than its name, which can change (Reading models).
Release 359: attaching files
Section titled “Release 359: attaching files”Additions.
PUT /v1/elements/{elementId}/attachment: attach a file to an element (the file as the body, up to 4 MB), replacing any it had;DELETE /v1/elements/{elementId}/attachmentremoves it. The same rules as the app: only an element whose type allows an attachment, images only for an image type. See Attaching files.- An element’s
updatedAtandETagnow also change when its attachment is set or removed, in the app too. too_large(413) now also comes from a file over 4 MB.
Release 351: deletions, and large deletes
Section titled “Release 351: deletions, and large deletes”Additions, and one change.
GET /v1/projects/{projectId}/deletions?since=…: every package, element, relationship and view deleted since a time, however it was deleted, remembered 30 days. See Keeping another system in step.- A delete of more than 200 elements and relationships answers
202with a job (kind: "delete") that deletes them in the background. Jobs gaindeleted, the count when a delete is done. - New error code
resync_required(410). - Changed: a large single delete was refused with
413 too_large; it now runs as a job.too_largenow comes only from a batch.
Release 350: relationships, and many changes at once
Section titled “Release 350: relationships, and many changes at once”Additions.
POST /v1/projects/{projectId}/relationships,PATCHandDELETE /v1/relationships/{relationshipId}: a relationship by type id or name, between two elements of one model, refused when its type can’t join that pair. See Changing models.POST /v1/projects/{projectId}/batch: up to 200 creates, updates and deletes, all or none, withrefs for items made earlier in the batch. See Many changes at once.ETagon every relationship write, as for packages and elements.
Release 349: changing models
Section titled “Release 349: changing models”Additions.
- Changing models:
POST /v1/projects/{projectId}/packages,PATCHandDELETE /v1/packages/{packageId},POST /v1/projects/{projectId}/elements,PATCHandDELETE /v1/elements/{elementId}. Values are written in their natural types, by property type name or id; an element’s type by id or by name. Needs a contributor or admin key. GET /v1/packages/{packageId}: one package.ETagon one package, element or relationship, and on every change’s answer;If-Matchon a change or a delete.Idempotency-Keyon every change: a repeat within a day gives the first answer.- New error codes:
precondition_failed(412),idempotency_key_reused(422),too_large(413).validation_failednow also comes from Farkitect’s own rules, witherrorsnaming each field.
Release 348: the drawing package and tool are on npm
Section titled “Release 348: the drawing package and tool are on npm”No change to the API.
@farkitect/drawand@farkitect/render(thefarkitect-rendertool) are published on npm, so the commands in Drawing a diagram in your program now work as written.
Release 347: drawing diagrams in your program
Section titled “Release 347: drawing diagrams in your program”Additions (outside the API itself).
- Drawing a diagram in your program: Farkitect’s drawing package,
@farkitect/draw, draws a diagram’s drawing data in a web page exactly as the app does, and the command-line toolfarkitect-rendermakes PNG or SVG pictures of it from any language. Both are about to be published to npm.
Release 346: v1 is a preview; more drawing data
Section titled “Release 346: v1 is a preview; more drawing data”Additions, and a change to how v1 changes.
- v1 is a preview until it is declared stable: until then a change may break a working program, and every such change is marked Breaking here. Most changes remain additions. See Versions.
GET /v1/diagrams/{diagramId}/drawing: each type gainsownColours, the colours its notation sets (nullwhere Auto), from which itscoloursare worked out; each value gainstext, the value exactly as stored.
Release 345: drawing data for shapes that don’t fit their metamodel
Section titled “Release 345: drawing data for shapes that don’t fit their metamodel”An addition and a correction.
- Shapes and connectors in
GET /v1/diagrams/{diagramId}/drawinggainopacity: 0.4 for one that doesn’t fit its metamodel, else 1. - Corrected: the colours of a shape or connector that doesn’t fit its metamodel were its usual ones; they are now the theme’s muted colours the app draws it in. See Views.
Release 344: a diagram’s drawing data
Section titled “Release 344: a diagram’s drawing data”Additions.
GET /v1/diagrams/{diagramId}/drawing: everything a diagram shows, to draw it as the app does: final colours in both themes, the types used and their icons once each, values, labels, nesting, view links. Itsversionis theETag;If-None-Matchanswers 304 when nothing changed. See Views.
Release 339: export jobs
Section titled “Release 339: export jobs”Additions.
POST /v1/packages/{packageId}/exports(202, a job),GET /v1/jobs/{jobId}andGET /v1/jobs/{jobId}/file: a package exported as.farkiin the background, kept a day. One at a time per organisation. See Exports.- A new error code,
job_not_ready(409).
Release 338: views and the integrity check
Section titled “Release 338: views and the integrity check”Additions.
GET /v1/projects/{projectId}/views(kind,packageId): every diagram, catalog, board and chart view, with a catalog’s or board’s type, a board’s group-by and a view’s scope. Catalog rows and board cards aren’t given yet.GET /v1/diagrams/{diagramId}: a diagram’s shapes, connectors (with bend points) and links to other views.GET /v1/projects/{projectId}/integrity: the integrity check, withok,errorsandwarnings, for CI. A heavy call. See Views and Checks.
Release 336: whole packages
Section titled “Release 336: whole packages”Additions.
GET /v1/packages/{packageId}/contents(include=metamodel) andGET /v1/packages/{packageId}/markdown: a whole package in one call. See Reading models.- Heavy-call limits: 6 a minute, 1 at a time and 200 a day per organisation (
limits.heavy…inGET /v1/me). See Rate limits. - New error codes
use_export_job(413) andbusy(503).
Release 335: models
Section titled “Release 335: models”Additions.
GET /v1/projects/{projectId}/packages,…/elementsand…/relationships, with filters (type,packageId,sourceId,targetId,elementId) andinclude=properties;GET /v1/elements/{elementId}andGET /v1/relationships/{relationshipId}. See Reading models.- Property values in their natural JSON types, with
fitsand, for enumerations,storedValue. updatedSinceon elements and relationships, oldest change first, for keeping another system in step. Every change to an element’s values now counts as a change to the element.GET /v1/elements/{elementId}/attachment: the attached file itself.
Release 334: projects and metamodels
Section titled “Release 334: projects and metamodels”Additions.
GET /v1/projectsandGET /v1/projects/{projectId}: the projects a key reaches.GET /v1/projects/{projectId}/metamodels,GET /v1/metamodels/{metamodelId}, and itselement-types,relationship-typesandenumerations: what a project’s models are made of, with property types own and inherited. See Projects and Metamodels.- Lists:
{ object, data, hasMore, nextCursor }, withlimitandcursor. A page can hold fewer thanlimit. - A new error code,
invalid_cursor(400), andapi_disabled_for_organization(403). - A new limit: 4 requests running at once per key (
limits.requestsAtOncePerKeyinGET /v1/me). See Rate limits.
5 November 2026: v1, early access
Section titled “5 November 2026: v1, early access”Additions. The API opens in early access, free for every organisation.
GET /v1/me: the calling key, its organisation, the projects it reaches with its role in each, its expiry and the organisation’s limits.- API keys in Organisation › Developers: whole organisation or one project; viewer, contributor or admin; expiring, extendable, revocable. A project’s Members tab lists the keys that reach it.
- Errors as RFC 9457 problems with stable codes (Errors); rate limits with
RateLimit-*headers (Rate limits). - The interactive reference at api.farkitect.com/docs, the OpenAPI file, and
llms.txt/llms-full.txt.