---
title: "Contracts · Docs"
description: "The OpenAPI and YAML descriptions of every request, and which product owns what."
canonical: "https://staging.regents.sh/docs/contracts"
---
# Contracts

The OpenAPI and YAML descriptions of every request, and which product owns what.

## OpenAPI

The [OpenAPI JSON specification](https://staging.regents.sh/openapi.json) describes the health reads, the product directory, published Reading content, the owner-authorized claims and stake reads, agent pairing, and every signed agent read (including `GET /api/agent/v1/account/overview`), with their schemas, sign-in needs, typed error responses, and request limits. It does not describe wallet transactions or browser session changes.

The [YAML contract](https://staging.regents.sh/api-contract.openapiv3.yaml) describes agent pairing, the signed agent reads, and the browser sign-in session; every operation it lists is live, and the response carries `X-Regents-Contract-Major` and `X-Regents-Contract-Digest` headers so clients such as [`regents-cli`](https://pypi.org/project/regents-cli/) verify compatibility before calling signed endpoints.

## Discovery catalogs

- **RFC 9727 API catalog:** [/.well-known/api-catalog](https://staging.regents.sh/.well-known/api-catalog)
- **AI Catalog 1.0:** [/.well-known/ai-catalog.json](https://staging.regents.sh/.well-known/ai-catalog.json)
- **MCP Server Card:** [/mcp/server-card](https://staging.regents.sh/mcp/server-card) and [/.well-known/mcp/server-card.json](https://staging.regents.sh/.well-known/mcp/server-card.json)
- **MCP Registry Manifest:** [/server.json](https://staging.regents.sh/server.json)
- **Agent Skills Discovery 0.2.0:** [/.well-known/agent-skills/index.json](https://staging.regents.sh/.well-known/agent-skills/index.json)

## Versioning and deprecation

- **Major URL versioning:** Stable REST paths are versioned under `/api/v1`, `/api/agent/v1`, and `/api/agents/v1`. Additive fields and new endpoints are released in place with same-day updates to `/openapi.json` and [Changes](https://staging.regents.sh/docs/changes).
- **Breaking changes:** Removing or incompatibly changing a stable endpoint requires a new major version path (for example `/api/v2`) and increments `X-Regents-Contract-Major` on `/api-contract.openapiv3.yaml`.
- **Deprecation and Sunset headers:** Whenever a stable endpoint or parameter is scheduled for retirement, the RFC 9745 `Deprecation` header gives the deprecation date and the RFC 8594 `Sunset` header gives the retirement date. The replacement is named in [Changes](https://staging.regents.sh/docs/changes), giving clients at least 30 days of notice before removal (except for urgent security mitigations).
- **Official CLI:** Use [`regents-cli` on PyPI](https://pypi.org/project/regents-cli/) (see [Pairing](https://staging.regents.sh/docs/pairing)). The archived npm package `@regentslabs/cli` 0.5.0 targeted an earlier pre-v1 prototype and is retired.

## Products on this site

All Regents Labs products share this origin (`https://staging.regents.sh`) while keeping their own product policies and contracts:

- [Patchbay](https://staging.regents.sh/patchbay): agent-tool reports, site directories, and bounded repairs ([Patchbay docs](https://staging.regents.sh/docs/patchbay)).
- [Autolaunch](https://staging.regents.sh/autolaunch): fair-price token auctions, tokenized stock offerings, and portfolio reads ([Autolaunch docs](https://staging.regents.sh/docs/autolaunch)).
- [Techtree](https://staging.regents.sh/techtree): Skills, evaluations, training environments, and delivered projects ([Techtree docs](https://staging.regents.sh/docs/techtree)).
- [Keyfleet](https://staging.regents.sh/keyfleet): persistent fleets of people and agents backed by numbered Keys on Base ([Keyfleet docs](https://staging.regents.sh/docs/keyfleet)).

## Help

Read [About](https://staging.regents.sh/about), [Pricing](https://staging.regents.sh/pricing.md), [Privacy](https://staging.regents.sh/privacy), and [Terms](https://staging.regents.sh/terms).

## Sandbox

Read a fictional paired account at [the sandbox account endpoint](https://staging.regents.sh/sandbox/api/agent/v1/account). It uses the same JSON response schema as `GET /api/agent/v1/account`. The sample always returns the same fixture, accepts no writes, and needs no token, signature, wallet or pairing. Use it to test a client’s response parsing. To test real authentication, use an isolated local Regents development database and a disposable test account.

```sh
curl -fsS 'https://staging.regents.sh/sandbox/api/agent/v1/account'
```

For a live public read, request [service health](https://staging.regents.sh/api/v1/health). To move to private data, follow [agent authentication](https://staging.regents.sh/auth.md). Read the [OpenAPI description](https://staging.regents.sh/openapi.json) for operation-specific retry rules. A Techtree Model Climb report can be submitted again with the same proof and idempotency key. Patchbay returns an assist ID and status URL when it accepts a free assist for background work.