The Farkitect API
The Farkitect API lets programs of your own work with your models: a script that writes a report or a document from a package, a dashboard, another system kept in step with Farkitect. Your program presents an API key made in Organisation › Developers, and calls the API over HTTPS with JSON.
Early access
Section titled “Early access”The API is in early access. It’s free for every organisation while in early access; a paid plan will be needed later, and you’ll be told well before that applies. During early access it grows phase by phase:
| Available | What you can do |
|---|---|
| Now | Read projects, metamodels, models, views, a whole package in one call, a diagram’s drawing data, the integrity check, and .farki exports. Change models: make, change, move and delete packages, elements and relationships, with their values, up to 200 changes in one call, large deletes in the background, and a list of what was deleted |
| Next | Attaching files |
| Later | Import, webhooks to hear about changes as they happen, and apps other organisations connect to |
The changelog lists each change as it arrives.
Where it is
Section titled “Where it is”| Address | https://api.farkitect.com/v1 |
| Interactive reference | api.farkitect.com/docs: every endpoint, with a Send button to try it with your key |
| OpenAPI file | api.farkitect.com/openapi.json, for code generators and AI assistants |
| For AI assistants | docs.farkitect.com/llms.txt and llms-full.txt |
How it behaves
Section titled “How it behaves”- JSON in and out, UTF-8. Field names are camelCase, ids are opaque strings, dates are ISO 8601 in UTC.
- Keys go in the
Authorizationheader:Authorization: Bearer fk_live_…. Never in the address, and never in a web page: the API refuses calls from browsers. See API keys. - Errors are RFC 9457 problems with a stable
codeand a request id. See Errors. - Rate limits keep one program from crowding out others. Every response says where you stand. See Rate limits.
- The same rules as the app. A key acts as a member of the project with its role (viewer, contributor or admin), so it can see and do exactly what a person with that role can.
Versions
Section titled “Versions”The version is in the path: /v1.
v1 is a preview. The API is still being shaped, so until it is declared stable a change may break a working program: a field renamed or reshaped, say. Every such change is marked Breaking in the changelog, so check it when you update. Ignore fields and values you don’t recognise; most changes are additions, and your program keeps working through them.
It will be declared stable once developers outside Farkitect build on it; if you are about to, tell us and we’ll settle it with you first. Once v1 is declared stable, with notice in the changelog, changes within it will only be additions: new endpoints, new fields, new error codes, new values in lists. A change that could break a working program would then come as /v2, with v1 kept running for at least a year.
Quick start: a key and your first call, in five minutes.