Files
d627632874 Release docs for paperclip v2026.1106.0 (#172)
Docs for parent release `v2026.1106.0` (`d69631b0`), up from
`v2026.1023.0` (`1b4c8038`): 515 parent commits.

## How this branch was built

The tag is 914 commits behind what `nightly` has drafted, so this branch
isn't cut from `nightly` HEAD. It starts at nightly commit `1952052`
(parent `043f2514`), 19 commits before the tag, then adds:

- the `main` hotfix (#160)
- the sync tooling from `nightly`
- docs for those 19 commits

Later nightly drafts stay on `nightly`, so no pages had to be removed.
No `nightly-draft/*` PRs are open.

## What changed

- **Runner by default:** new Claude, Codex, OpenCode and Pi agents start
on Paperclip Runner on supported hosts, with **Legacy runner** and
**Upgrade runner**.
- **Workspaces:** cleanup of finished workspaces, optional Git
expiration, and restore points for unsaved work. Restore points are off
by default.
- **New pages:** Prompt injection prevention, Google Workspace, GitHub
Copilot, Speko, Braintrust, Daytona, Ditto and Unikraft.
- **Breaking and upgrade notes:** the run history limit, Sentry run
failures off by default and the DSN variables, the Docker start command
for custom images, `--yes` on `instructions-file:delete`, and slower
migrations on large instances.
- **Also covered:** project repositories as skill sources, roster bulk
edit, Artifacts V1 (experimental, off by default), composer dismissal,
`expectedStatusVersion`, `unexecuted_review_stage`, and plugin workspace
providers.
- **Changelog:** a v2026.1106.0 entry in `reference/changelog.md`.

## Older text corrected

These were wrong at the tag, and most are also wrong on the live site:

- which permissions let an agent read a peer's configuration or change
instructions (`api/agents.md`)
- `decideNowCount`, which doesn't exist; the field is `deskBadgeCount`
- `file-resources` routes, which are board-only
- the **Create project** dialog fields, a CEO rule the code doesn't
enforce, and where a terminated agent's reports appear
- `instructions-file:put` and `:delete` examples that always failed
(`cli/agent.md`)
- a curl example that returned `422` (`api/cases.md`)
- Google Workspace **Reconnect** instructions, which claimed it reopens
the service picker
- the `permissionKey` table, which listed 8 of 21 keys
- drafting text at the end of `api/agents.md`

## ⚠ Please check these

- **Product behaviour that may be a parent bug.** The docs now describe
the tag's code, which you may prefer to fix upstream:
- The project **Environment** dropdown saves a choice, but runs ignore
it (`experimental/environments.md`).
- `environments:manage` is granted by roles but no environment route
checks it.
- `suggest-changes` is documented as agent-only, because only agents
have a consent path. Company skill policy decides skill edits.
- **Reader-visible mismatches in the parent UI.** The docs follow the
code. Upstream copy still mentions a "Built-in agents tab", says Copilot
"awaits qualification", and tells people to "Reconnect Google Workspace
to change access".

## ⚠ Post-tag leaks removed

Nothing to remove from an already-drafted page: post-tag surfaces such
as 1Password, Vercel, Supabase deploy, custom gateway onboarding and
Artifacts V1 as default never came onto this branch. Authors left out
post-tag hunks of the next nightly draft, and the reasons are in the run
notes.

## ⚠ Drift

None. Zero findings at the tag, from a full parent snapshot.

## ⚠ Verification Failures

The tag-accuracy gate reports one leak and nine review entries. None is
a real failure:

- **Leak:** `reference/cli/service.md`, `paperclipai payload and`. This
is a false positive; it's prose from a real message at
`cli/src/commands/service.ts:184`.
- **Review, 8 new connector pages:** the gate can't confirm new pages.
Reviewers confirmed each surface exists at the tag.
- **Review, `local_tools`:** an example value from the tag's Runner
README.

Not provable from code, and kept deliberately:

- `sandbox-providers.md` uses `sandbox.yaml`. The tag's README says
`install.yaml`, which returned 404 when checked. The upstream fix is
post-tag.
- The Google Workspace row about older OAuth brokers rests on release
notes and a design doc. The broker isn't in this repo.
- External claims about provider behaviour (for example Braintrust,
Daytona, Unikraft and Google scopes).

## ↻ Renames detected

None. The rename helper wasn't run: the 19-commit delta adds no new
adapter, skill, or plugin directories that it would check.

## Verification

All checks read a checkout pinned to the tag.

- **First round:** authors, a release-notes audit, an audit of
corrections stranded on `nightly`, an audit of 321 lines the last
realign dropped from `main` (about 130 checked directly in code), and
six fresh verifiers.
- **Second round:** seven new verifiers re-checked every changed area,
tracing behaviour rather than matching labels, and fixed about 50 more
defects. That volume means more may remain.
- **Limits of that second round:**
- Each verifier reported what it only string-matched. That includes
parts of Artifacts V1, the **Upgrade runner** notice, Copilot run
behaviour, and some Plugin SDK contract text.
  - The second-round fixes themselves weren't reviewed by a third round.
- **Gates:** `docs:build`, `docs:test` and `sync:check` pass.
- **Nothing was run against a live instance.** All of this comes from
reading code.

## Screenshots

**196 of 278 screenshots are stale and none were recaptured.** The list
is in `SCREENSHOTS_PENDING.md`. Some visibly differ from the text, such
as the removed **Run with provider trace** button and the old roster
tabs.

## After merge

1. Keep the PR title as is: `tag-docs-release.yml` reads the version
from it.
2. Confirm the `docs/v2026.1106.0` tag exists.
3. Run `node scripts/sync/realign-nightly.mjs release/v2026.1106.0
--push`, then audit for dropped lines and duplicated paragraphs, and set
`nightly` state back to `branch_mode: nightly`.
4. Check that `docs.paperclip.ing` serves the release: a new page, a new
claim, and the changelog's top entry.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: DevRel Gemini <[email protected]>
Co-authored-by: Paperclip <[email protected]>
Co-authored-by: Dotta <[email protected]>
Co-authored-by: ClaudeCoder <[email protected]>
2026-11-07 13:02:42 +01:00

8.1 KiB

paperclip_version, seo_title, seo_description
paperclip_version seo_title seo_description
v2026.1106.0 API Overview The shared reference for Paperclip's JSON control-plane API — companies, agents, issues, approvals, costs, routines, secrets, activity, and dashboard state.

API Overview

Paperclip exposes a JSON API for company control-plane work: companies, agents, issues, approvals, costs, routines, secrets, activity, and dashboard state. This page is the shared reference for how the API is structured before you jump into a specific resource.


Base URL

The API prefix is always /api.

In local development that usually means:

http://localhost:3100/api

Every endpoint in this section is relative to that prefix.

Authentication

Paperclip supports different request identities depending on the deployment mode and caller type:

Caller How it authenticates Notes
Board user in local_trusted Implicit board access No login friction in local trusted mode.
Board user in authenticated mode Session cookie from the web app The UI uses the browser session; API clients can use the same session if they send cookies.
Board user with an API token Authorization: Bearer <board-token> Board API keys are supported by the auth middleware.
Agent Authorization: Bearer <agent-key-or-jwt> Agents use long-lived API keys or short-lived run JWTs.

Practical rules:

  • Board requests can operate across the companies the board user is allowed to access.
  • Agent requests are always company-bound to the agent that owns the token or JWT.
  • If you are calling the API from the browser UI, the session cookie is usually enough in authenticated mode.
  • If you are calling the API from a script, use Authorization: Bearer ....

Note: The server also reads X-Paperclip-Run-Id on mutating requests during agent runs. That is mostly relevant for issue comments, checkout, and other run-linked actions.

External assistants can also connect as a human through the experimental Assistant MCP API, using user OAuth and explicit read, write, and configuration scopes. An agent's cryptographic identity is separate from API authentication.

curl "http://localhost:3100/api/health"
const res = await fetch("http://localhost:3100/api/health");
const health = await res.json();
import requests

health = requests.get("http://localhost:3100/api/health").json()

Company Scoping

Most control-plane endpoints are company-scoped. That means the company ID must be present in the path, usually as:

/api/companies/{companyId}/...

Rules to keep in mind:

  • Board users can only access companies they are actually allowed to see, unless they are implicit local board users or instance admins.
  • Agent tokens can only access the company that issued the token.
  • If you hit a company-scoped route with the wrong company, expect 403 Forbidden or 404 Not Found depending on whether the server can tell you are unauthorized or the entity does not exist.

When a route is not company-scoped, it is usually because it operates on a global identity like a specific agent, issue, approval, or health check.

Request Format

For agent-submitted product feedback, see Complaints and suggestions. That endpoint requires an active authenticated agent run; board users cannot submit on an agent's behalf. Board users read submitted feedback through the separate commentary read routes, which need commentary:view.

Most API calls use JSON request bodies:

Content-Type: application/json

Common conventions:

  • Use JSON for request bodies unless the route explicitly documents multipart upload or another format.
  • List endpoints often return arrays or paginated collections depending on the resource.
  • Validation is performed server-side with Zod schemas, so malformed payloads usually come back as 400.

Response Format

Successful responses return JSON.

Error responses also return JSON and usually look like:

{
  "error": "Human-readable error message"
}

Some validation and domain errors also include a details field with structured context.

Error Codes

These are the most common status codes you will see:

Code Meaning Typical cause
400 Bad request Validation failed, required fields were missing, or the payload shape was wrong.
401 Unauthorized No valid caller identity was provided.
403 Forbidden You are authenticated, but not allowed to perform the action.
404 Not found The resource does not exist, or it is outside your company scope.
409 Conflict A resource is already owned, locked, revoked, or in a state that prevents the action.
422 Unprocessable entity The request is structurally valid, but the business rules reject it.
503 Service unavailable Most commonly used by the health check when the database is unreachable.
500 Internal server error The server hit an unexpected failure.

Two useful distinctions:

  • 401 means the server does not accept the caller identity.
  • 403 means the caller is known, but not allowed to do this.

Health Check

GET /api/health

The health endpoint is the fastest way to check whether the server is up and whether the database is reachable.

It also reports runtime metadata such as:

  • deployment mode
  • deployment exposure
  • auth readiness
  • bootstrap state in authenticated deployments
  • feature flags such as company deletion
curl http://localhost:3100/api/health
const res = await fetch("/api/health");
const health = await res.json();
import requests

health = requests.get("http://localhost:3100/api/health").json()

OpenAPI Specification

The server publishes a machine-readable description of its REST surface as an OpenAPI document:

GET /api/openapi.json

Point your own tooling — client generators, request validators, or an API explorer — at this endpoint to get the current set of routes, parameters, and schemas straight from the running instance. From the terminal, paperclipai access openapi fetches the same document for you. This reference is written for people; the OpenAPI document is the same surface in a form built for machines.

A Good First API Call

If you are already authenticated, a simple company read is a good way to verify access:

GET /api/companies/{companyId}
curl "http://localhost:3100/api/companies/company-1" \
  -H "Authorization: Bearer <token>"
const res = await fetch("http://localhost:3100/api/companies/company-1", {
  headers: {
    Authorization: `Bearer ${token}`,
  },
});

const company = await res.json();
import requests

company = requests.get(
    "http://localhost:3100/api/companies/company-1",
    headers={"Authorization": f"Bearer {token}"},
).json()

Reading This Reference

Use this page for the rules that apply everywhere. Then jump to the resource-specific page for the actual endpoint shapes, payloads, and examples:

If you are building against the API from code, the safest mental model is:

  • pick the right caller identity first
  • keep every request company-scoped where the route expects it
  • treat 400, 403, 404, 409, and 422 as meaningful business signals, not just transport errors