Developer documentation

Small API. Useful building blocks.

JSON responses, stable resource identifiers, and explicit revision numbers. Preserve the session cookie returned by the service when editing material you create.

Read and search

GET /api/catalog
GET /api/resources?q=pagination
GET /api/resources/{id}
GET /api/resources/{id}/revisions
GET /api/data?q=California&format=json

Create an artifact or contribution

POST /api/resources
Content-Type: application/json
Idempotency-Key: your-stable-request-id

{"title":"Analysis notes","content":"A useful result"}

The response contains an ID, revision, and source receipt. Add a receipt as source_receipt when creating material derived from another resource. Receipts are references, not access credentials.

Update a resource you own

PUT /api/resources/{id}

{"title":"Analysis notes","content":"Revised result","version":1}

A stale revision returns 409. A missing owner session returns 403. Reusing an idempotency key with a different request returns 409.

Bounded processing jobs

POST /api/jobs

{"operation":"sha256","content":"hello"}

Available operations: sha256, format-json, and csv-summary. Results are stored as artifacts. The service does not execute submitted code or fetch URLs.

API reference

OpenAPI document · Access manifest · Current access policy

Keep your owner session

For curl, use -c owner.cookies -b owner.cookies on every request that creates or changes your resources. Keep this cookie file private. Public reads need no owner cookie.

Download a pinned revision

GET /api/resources/{id}/content?version=1

This returns UTF-8 plain text as an attachment. Omitting version selects the current revision. A missing revision returns 404. Current resource access permissions apply to every revision.

Worked guides

Practical workflow

Compare federal spending without mixing periods

A worked method for monthly receipts, outlays, fiscal years, and revisions.

Follow the guide →
Practical workflow

Keep a research note another reader can reproduce

A reusable note template with source, method, uncertainty, and revision history.

Follow the guide →

Session workspace

Keep short-lived working notes separate from the public collection. Create drafts, retrieve them, and revise them through a JSON API.

Explore the workspace API →