This guide walks through the canonical first interactions with the Archyon API: obtaining credentials, reading existing data, and creating new resources. Every example usesDocumentation Index
Fetch the complete documentation index at: https://docs.archyon.app/llms.txt
Use this file to discover all available pages before exploring further.
curl; see Authentication for equivalent JavaScript and Python snippets.
Prerequisites
- An Archyon account at archyon.app.
- Membership in at least one organization. Personal accounts that have never joined an organization should create one from the organization switcher in the application header before continuing — organization scope is required for the resources used in this guide.
1. Mint a personal access token
Personal access tokens are the recommended credential for any non-browser client.- Sign in at archyon.app.
- Switch to the organization the token should act in, using the organization switcher in the top-left of the header. The token is permanently bound to whichever organization is active at mint time — see Authentication › Organization binding.
- Open Account → Tokens and click New token.
- Provide a descriptive name (for example,
quickstart-laptop). - Copy the returned
an_pat_…string. The token is shown exactly once; it cannot be recovered later.
2. Verify the token
Confirm the credential is accepted and that the expected organization context is attached:session.orgId is null, the token was minted without an active organization. Switch organizations in the application and re-mint.
3. List workspaces
Retrieve every workspace the caller can read in the bound organization:id from the result and use it in the next step.
4. Read a workspace in full
A singleGET returns the workspace metadata together with every component, relationship, stakeholder link, and process it contains:
5. Create a component
Components require a stableid, a typeId from the type catalogue, and a human-readable name. Optional x and y set the canvas position; omitting them places the component at the origin.
typeId values come from GET /api/schema. The default catalogue includes service, database, queue, external, frontend, library, job, and store.
6. Create a relationship
Relationships connect two existing components by ID. ThetypeId again comes from /api/schema (defaults include depends-on, reads-from, writes-to, calls, publishes-to, subscribes-to).
Next steps
- Review Conventions for identifier rules, PATCH semantics, and other invariants that apply across all endpoints.
- Browse the API Reference tab for the complete operation catalogue, including stakeholder links, processes, and the Notion proxy.
- For programmatic editing from AI tooling, install the Archyon MCP server, which exposes the same surface as MCP tools.