Hosts
A host is one source in your network: a folder on a device, a cloud account, or the pad. Each has an id, a scope, and a state.
List and read
Section titled “List and read”GET /v1/hostsGET /v1/hosts/{id}{ "id": "h1a2b3c4d5e6", "kind": "fs", "name": "Documents", "reachability": "device-bound", "steward": "<device id>", "scope": { "rev": 1, "window": { "by": "mtime", "within": "1y", "outside": "catalog" }, "rules": [ … ] }, "write": { "rev": 0, "rules": [] }, "private": true, "state": "online", "head": { "items": 1200 }, "coverage": { "items": { "catalog": 300, "embed": 900 }, "evaluatedAt": "…" }, "created": "2026-10-01T09:00:00Z", "createdBy": "acct_…" }| field | |
|---|---|
kind |
fs for a folder on a device, bucket for the pad; for a cloud account, the kind its connector names, such as github |
reachability, steward |
device-bound hosts live on one device, named by steward. The pad and cloud accounts are produced by the network’s cloud node |
scope |
what is indexed and how deeply; see scope |
write |
the write policy: which writes the host takes; no rules means none |
private |
only its creator sees it until it is shared |
paused |
true when a person paused its indexing; absent when it was never paused |
state |
online, offline (its device is off), indexing, error |
head.items |
how many items the host holds in the index |
coverage |
items per depth, and when the scope was last applied |
A token sees the hosts it was granted, plus private hosts only when they belong to the person who created it.
For how far indexing has got, see GET /v1/status on the networks page.
Change a host
Section titled “Change a host”PATCH /v1/hosts/{id}{ "name": "Work documents", "private": false }name, private, write and paused can change, and config for a cloud account. Browser session only, by the
host’s creator or a network admin.
paused: true stops indexing the host: its device does not walk or watch it, and a cloud account is not crawled.
Search still answers from the index, and a write through inseam is still indexed. paused: false resumes it: a
folder is walked at once, and a cloud account’s crawl goes on from the page it stopped at. The pad cannot be paused
(400): it indexes each write as it lands.
config holds a cloud account’s settings, the fields its connector declares (GET /v1/hosts/{id}/connector
lists them). A value that the connector does not declare is 400, naming the field. A change starts a new crawl
from the beginning.
Write policy
Section titled “Write policy”A write or delete through inseam passes three checks: the caller’s grant (for an agent, the scopes you approved),
what the host’s connector takes (writes), and the host’s write policy (write). A new folder’s policy has no
rules, so it takes no writes until its creator or a network admin adds one. The pad’s policy lets members write
anywhere and agents under agents/.
{ "rev": 2, "rules": [ { "when": { "principal": ["agent"], "prefix": "Private/" }, "then": {} }, { "when": { "principal": ["agent"], "prefix": "Notes/", "mime": ["text/*"] }, "then": { "create": true, "replace": true } }, { "when": { "principal": ["member"] }, "then": { "create": true, "replace": true, "delete": true } }] }The rules are tried in order, and the first rule whose conditions all match decides the write. A rule that allows
nothing refuses what it matches. When no rule matches, the write is refused. principal is agent or member
(a person, or one of their devices); mime matches a type or type/*. A delete has no type, so mime does not
limit it. A rule cannot allow what the connector does not take (400).
To change it, send the whole policy with the rev you read:
PATCH /v1/hosts/{id}{ "write": { "rev": 2, "rules": [ … ] } }A rev that is not the current one is 409 conflict: read the host again and apply the change to that. The web
app’s host page (Writes) and inseam host policy do this for you.
A refused write is 403 forbidden with details.check: grant when the caller’s grant does not cover the
address, policy when no rule allows it.
Remove a host
Section titled “Remove a host”DELETE /v1/hosts/{id}204. The device stops sending for it and its items leave the index shortly after. Files on the device are not
touched. For a cloud account, inseam also deletes the stored credential.
GET /v1/hosts/{id}/scopePUT /v1/hosts/{id}/scopeGET returns {"scope": …, "dimensions": […], "schema": …}: the current document, the dimensions this host’s
items have (path, ext, mime, size, mtime), and the JSON schema of a scope. PUT takes a document
without rev and returns it with the new rev, or 422 invalid-scope naming the rule and dimension that do not
evaluate. See choose what is indexed for the common cases.
A scope save on a cloud account starts a crawl pass at once, so the new scope applies now.
A cloud account’s connector and crawl
Section titled “A cloud account’s connector and crawl”GET /v1/hosts/{id}/connectorPOST /v1/hosts/{id}/indexGET describes the connector that crawls a cloud account. It never returns the credential or the code:
{ "kind": "github", "title": "GitHub repositories and issues", "origins": ["https://api.github.com"], "auth": { "type": "oauth2", "provider": "github", "scopes": ["repo"] }, "listing": "free", "intervalMs": 3600000, "fields": [ … ], "config": { … }, "sections": [ { "prefix": "issues", "objects": 1800 }, { "prefix": "repos", "objects": 42 } ], "otherObjects": 0, "crawl": { "pass": 4, "started": null, "next": "2026-11-12T19:00:00Z", "errors": 0, "again": false, "last": { "at": "2026-11-12T18:00:00Z", "seen": 1842, "changed": 12, "removed": 1, "ms": 84000 } }, "connected": true }| field | |
|---|---|
origins |
the only web origins the connector may reach |
auth |
none, a fixed credential (static), or a sign-in with a provider (oauth2) |
listing, intervalMs |
free hosts are crawled every hour; metered ones every six hours |
fields, config |
the settings the connector declares, and the values it runs with |
sections |
the objects of the last listing, counted by the first segment of their path |
crawl |
the pass under way (started), the last complete pass, when the next one runs, and failures in a row |
connected |
false when the account must be connected again; null when it has no sign-in |
404 for a folder on a device and for the pad.
POST /v1/hosts/{id}/index with {} asks for a crawl now: 202 {"crawl": …}. An idle host starts a pass at
once; a host in a pass starts another one as soon as it ends. Browser session only, by the network’s owner or the
host’s creator.
The same call works for a folder on a device: 202 {"crawl": null}, and the device walks the folder now (or starts
its indexer again, when it stopped). 503 steward-offline when the device is not connected: the request is not
kept, and the device walks the folder when it connects. A paused host is 400: resume it first.
Add a host
Section titled “Add a host”Folders are added from the device that holds them: the app’s Add folder… or inseam host add. Cloud accounts
are added by an agent with the connect permission: see connect a cloud account
and MCP. POST /v1/hosts exists for the clients and is not useful from a
script today.
Devices
Section titled “Devices”GET /v1/nodesDELETE /v1/nodes/{id}{ "nodes": [ { "id": "…", "name": "work laptop", "platform": "macos", "kind": "device", "online": true, "lastSeen": "2026-10-25T17:59:40Z", "hosts": ["h1a2b3c4d5e6"] } ] }Every network also has one cloud node that holds the pad and crawls cloud accounts. DELETE revokes a device: it can no longer connect,
and its hosts go offline until they are removed or the device is connected again as a new device.