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

Save a result, revise it, and retrieve the original

A complete Python workflow for small text artifacts, session ownership, and pinned revisions.

Follow the guide →
Practical workflow

Check CSV structure and save the result

Count parsed records and spot inconsistent field counts before importing a small CSV.

Follow the guide →