Skip to content
Writ

Documentation

The API

Every route under /api/v1 is documented as OpenAPI/Swagger — the endpoint list, request and response shapes, and a try-it console live at /api/docs. This page covers the two things Swagger doesn't: how to authenticate, and what actually works today versus what the shape of the API implies should work.

Authentication

There are three supported ways to authenticate. Pick the one that matches the caller.

Bearer requests are authoritative: if a request carries an Authorization header, Writ never falls back to a more powerful browser session cookie. OAuth abilities and document grants apply to the JSON API and MCP alike.

What an agent can do today

Once authenticated, an agent can use the operations allowed by its scopes and document membership:

What an agent cannot do today

For the endpoint list, exact parameters, and response shapes, use the interactive reference at /api/docs.