Skip to main content
This guide walks through the canonical first interactions with the Archyon API: obtaining credentials, reading existing data, and creating new resources. Every example uses 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.
  1. Sign in at archyon.app.
  2. 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.
  3. Open Account → Tokens and click New token.
  4. Provide a descriptive name (for example, quickstart-laptop).
  5. Copy the returned an_pat_… string. The token is shown exactly once; it cannot be recovered later.
Export it as an environment variable for the remainder of this guide:

2. Verify the token

Confirm the credential is accepted and that the expected organization context is attached:
A successful response:
If 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:
Pick an id from the result and use it in the next step.

4. Read a workspace in full

A single GET returns the workspace metadata together with every component, relationship, stakeholder link, and process it contains:
Response (truncated):

5. Create a component

Components require a stable id, 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.
The available 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. The typeId again comes from /api/schema (defaults include depends-on, reads-from, writes-to, calls, publishes-to, subscribes-to).
Refresh the workspace in the web application; the new component and edge appear immediately.

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.