# Docs - [API](/api/llms-full.txt) - [The Athanor API](/api.md): A tenant-scoped GraphQL API for a dealer's or a custodian's own systems, one endpoint, two environments, no secrets. - **Getting in** - [Authentication](/api/authentication.md): Two ways in, neither a secret. A workload presents its platform's identity, or signs with a private key; Athanor holds nothing that can mint a token. - [SDK](/api/sdk.md): @athanor-trade/sdk: the published operations typed from the schema, and a client that authenticates, sends documents by hash, and reads refusals as typed errors. - **The API** - [Published operations](/api/operations.md): The operation set the SDK ships, per kind. Most integrations never write a query. - [The order's machine](/api/orders.md): Draft an order, then advance it one step at a time. The record names the steps that are legal right now, and a refusal names what it was waiting for. - [Refusals](/api/errors.md): Read the errors array even on a 200. Every refusal has a stable code, and most carry the fact you need to recover. - [Webhooks](/api/webhooks.md): The order's facts pushed to your endpoint as they happen, on the Standard Webhooks spec, signed with a key you can verify offline, retried for three days, replayable from Settings. - [Registered documents](/api/documents.md): A client registers the operations its build will run, by hash. On live it can accept nothing else, so a query that was never registered cannot run against you. - [Budgets and headers](/api/limits.md): What a document costs, what a client may spend per hour, what every answer says about it, and what a 429 means. - **Reference** - [Being a good citizen](/api/good-citizen.md): What a well-behaved integration does, and why each one keeps your budget, your data and our desk in good shape. - [Schema](/api/schema.md): The API's SDL as it stands, generated from the data graph. The source of every type on these pages. - [Alembic](/alembic/llms-full.txt) - [Alembic](/alembic.md): The RSC data graph the product is built on: Relay's good ideas, colocated fragments, masking, batched loading, per-entity caching, without a GraphQL runtime. - **The graph** - [The builder, then the graph](/alembic/builder.md): Two phases, because declarations reference each other in both directions: declare against a builder, build the graph once from the roots. - [Declare a node](/alembic/nodes.md): A node is a record: identified, batched over one service, cached once per entity. Four things are load-bearing, and one row property makes tenant isolation possible. - [Objects, fields and the Query root](/alembic/objects.md): An object is fields with no identity and derives from its parent. Seven field kinds, field arguments, nullable edges and null propagation. - [Fragments and views](/alembic/fragments.md): A fragment is a declared field slice whose return type is the mask. A view is a fragment that renders itself; match is the inline fragment per union variant. - [The entity cache](/alembic/cache.md): One use cache function for the whole graph, keyed by typename and id, with a bucketed clock so a cached read is deterministic. - [Queries](/alembic/queries.md): query binds a selector to the Query root and decodes its input at the boundary. Nesting is where the page's boundaries are; execute hands back each part on its own, never a promise for the whole. - [Mutations](/alembic/mutations.md): An ordinary Effect function with a declared input and a payload, registered under its name, recording the writes it made so the cache tags derive from the graph. - [Wiring: layers and the runtime](/alembic/wiring.md): The graph reconciles its own requirements once, off the request path; request-scoped services come per execute; there is no codegen. - [Testing](/alembic/testing.md): A test builds the graph the way the app does and hands it a runtime and a request, so it exercises the wiring that ships. - **Reference** - [Do's and don'ts](/alembic/dos-and-donts.md): The rules that keep the graph honest. Each one exists because its opposite was built once and had to be taken out. - [Common mistakes](/alembic/mistakes.md): Symptom to cause, for the things that go wrong when adopting the graph. - [The API bridge](/alembic/api-bridge.md): The tenant API's GraphQL schema is compiled from the same graph the pages read. One declaration, two surfaces, and a schema that cannot drift from the product.