Search
Four reads over the index. None of them touches your devices: the index lives in your network, so they work while a device is off.
Search
Section titled “Search”POST /v1/search{ "q": "quarterly report", "hosts": ["h1a2b3c4d5e6"], "topK": 10 }| field | |
|---|---|
q |
the query. Plain words; phrases in quotes |
hosts |
optional; limit to these host ids. Absent means every host the token may search |
topK |
optional, default 10, at most 100 |
filter |
optional: keep only the hits whose record matches every condition given. See filter |
snippets |
optional, default true; false leaves out snippet for a smaller answer |
{ "hits": [ { "address": "inseam://n7q2…/h1a2b3c4d5e6/Reports/Q3.md", "host": "h1a2b3c4d5e6", "score": 0.0312, "title": "Q3 report", "snippet": "…revenue for the quarter was…", "meta": { "size": 18234, "mtime": "2026-09-30T14:02:00Z", "mime": "text/markdown", "depth": "embed" } } ], "hosts": [ { "id": "h1a2b3c4d5e6", "name": "Documents", "searched": true, "coverage": { "items": { "catalog": 10, "embed": 900 } } }, { "id": "h9z8y7x6w5v4", "name": "Archive", "searched": false, "reason": "not in hosts" } ], "tookMs": 41}Results are ranked by relevance across every host that was searched. hosts says what was and was not covered,
so a tool can tell the difference between “nothing matched” and “that host was not searched”. Search is by words
today; semantic search is not yet.
An item at depth catalog matches by its title and path only. An item at embed matches by its text too. See
scope.
Filter
Section titled “Filter”POST /v1/search{ "q": "quarterly report", "hosts": ["h1a2b3c4d5e6"], "filter": { "mime": ["application/pdf", "image/*"], "after": "2026-10-01", "prefix": "Reports/" } }| field | |
|---|---|
mime |
media types, any of: an exact type ("application/pdf") or a prefix that ends with * ("image/*") |
kind |
one exact media type; the same as mime with one entry |
ext |
file extensions without the dot, any of: "pdf" or ["md", "txt"] |
after, before |
the item’s mtime is at or after after, and before before. ISO 8601 (2026-10-01T09:00:00Z); a date alone is the start of that day in UTC. An item with no mtime does not match |
minSize, maxSize |
size in bytes, both ends included |
prefix |
the path in the host starts with this: "Reports/2026/". Use it with one host in hosts |
deleted |
true returns forwards (moved or deleted items) and nothing else |
The conditions are ANDed. hosts picks the hosts; the filter picks among their items. A value that cannot be
used is a 400 whose details.field names it. The index ranks first and the filter runs on the ranked list, to a
depth of 500 matches a host: a match that ranks below that in its host is not found. Add words to the query
when a filter returns less than you expect.
Browse a folder
Section titled “Browse a folder”POST /v1/browse{ "prefix": "inseam://n7q2…/h1a2b3c4d5e6/Reports/", "limit": 200 }{ "prefix": "inseam://n7q2…/h1a2b3c4d5e6/Reports/", "folders": [ { "address": "inseam://n7q2…/h1a2b3c4d5e6/Reports/2025/", "name": "2025" } ], "entries": [ { "address": "inseam://n7q2…/h1a2b3c4d5e6/Reports/Q3.md", "name": "Q3.md", "path": "Q3.md", "title": "Q3 report", "mime": "text/markdown", "size": 18234, "mtime": "2026-09-30T14:02:00Z", "depth": "embed" } ], "more": false, "next": null, "scanned": 14 }One folder as a file browser shows it: the folders under the prefix, and its items with their records. prefix
is a host’s root (inseam://{network}/{host}/) or a path that ends with /. Deleted items are left out, and a
folder is listed only when an item under it is live.
| field | |
|---|---|
recursive |
true: every item under the prefix, with no folders. path is then the item’s path under the prefix |
filter |
the same filter as search, and name: the item’s name or title contains this text. A folder is kept when its name matches name; the other conditions do not apply to folders |
limit |
folders and items in one page: default 200, at most 1000 |
after |
the next of the page before |
A page can be short, or empty, and still have more: true: one call reads a bounded number of addresses
(scanned), and a filter can refuse all of them. Call again with after: next until more is false.
One record
Section titled “One record”GET /v1/get?address=inseam://n7q2…/h1a2b3c4d5e6/Reports/Q3.md{ "record": { "content": "b3:9f2c…", "size": 18234, "mtime": "2026-09-30T14:02:00Z", "mime": "text/markdown", "title": "Q3 report", "added": "2026-09-30T14:03:11Z", "depth": "embed", "deleted": false } }404 when the address is not in the index. Add text=1 to get the indexed text too, when the item has it. An address that was moved or deleted keeps a forward for a
while: its record has deleted: true and, after a move, movedTo. Add follow=1 to get the record at the new
address instead.
| field | |
|---|---|
content |
the content address of the bytes: b3: and a hash. Two items with the same content are the same bytes |
size, mtime, mime |
from the host |
title |
from the document, else the file name |
depth |
how deeply the item is indexed: catalog or embed |
etag |
the host’s version id, when it has one. Use it with If-Match on a write |
List a prefix
Section titled “List a prefix”GET /v1/list?prefix=inseam://n7q2…/h1a2b3c4d5e6/Reports/&limit=100{ "entries": [ { "address": "inseam://n7q2…/h1a2b3c4d5e6/Reports/Q3.md", "id": "…" } ], "more": true, "next": "…" }Everything under the prefix, in address order, deleted items left out. Pass after={next} for the next page.
limit is at most 1000.
Addresses in a URL
Section titled “Addresses in a URL”Where an address goes in a URL, URL-encode it, or use the short form {host}/{path} under the token’s network:
GET /v1/get?address=h1a2b3c4d5e6/Reports/Q3.md. See addresses.