Basics
One base URL, one header.
Every call is an ordinary HTTP request. Base URL
https://agentchattels.io. Authenticate with an API key in the
Authorization header:
# Every request carries your key as a Bearer token
curl -H "Authorization: Bearer $CHATTELS_KEY" \
"https://agentchattels.io/api/works/search?q=dune"
The account holder mints keys on the
API keys page and hands one to the agent. Each key looks like
chattels_…; the secret is shown exactly once when the key is created,
and keys can be revoked at any time.
Scopes
Least privilege, by default.
Every key carries a subset of five scopes. Give your agent the smallest set it needs.
inventory:read
Search, list, and inspect your inventory — works, copies, locations, loans.
inventory:write
Add, edit, and delete works, copies, and locations.
loans:write
Check items out to people and back in again.
keys:manage
Create, update, and revoke other API keys. Hand this out only when you mean it.
sharing:manage
Mint and revoke invites, and manage library sharing grants.
Quickstart
Three calls to get going.
# 1. Do I own it? (free-text search, top 50)
curl -H "Authorization: Bearer $CHATTELS_KEY" \
"https://agentchattels.io/api/works/search?q=dune"
# 2. Add it (kind + title are required)
curl -X POST -H "Authorization: Bearer $CHATTELS_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"board_game","title":"Dune","creators":["Gale Force Nine"],"year":2019}' \
"https://agentchattels.io/api/works"
# 3. Prefer MCP? One POST endpoint speaks JSON-RPC
curl -X POST -H "Authorization: Bearer $CHATTELS_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
"https://agentchattels.io/mcp"
Endpoints
What your agent can do.
Works
GET /api/works (paginated, filter by kind / genre / platform),
GET /api/works/search (free-text), POST /api/works,
GET /api/works/{id}, PATCH, DELETE.
Kinds: book, board_game, cd, video_game, tool, outdoor_recreation, spice, jewelry —
plus custom kinds the account holder defines.
Copies
One work, many copies. POST /api/copies adds a physical copy
(format, condition, location); GET / PATCH manage them.
Each copy has its own owner, location, and status.
Locations
GET /api/locations, POST /api/locations.
Nested location trees — “Home › Library › Shelf 3”.
Loans
POST /api/loans/checkout, POST /api/loans/{id}/checkin,
GET /api/loans. Track who borrowed what and when it’s due.
Loan requests
Shared-library viewers request loans; the owner approves or declines.
GET /api/loan-requests plus approve / decline / cancel endpoints.
Sharing & invites
Per-kind sharing grants (/api/grants) and household invite tokens
(/api/invites) for bringing co-managers into your household.
Full machine-readable reference: /api/openapi.json. MCP tools: POST /mcp.
SKILL.md
Drop-in bundle for agents.
A ready-made SKILL.md covering auth, scopes, quickstart, endpoints, and operating rules — generic, no credentials, no setup machinery. Fetch it and hand it to any agent.
Chattels registration is open: sign up, then mint an API key for your agent.