Locus API
One place address for what a place should hold and what is really there. Facts in the Memory API and objects in the Spatial Memory API can carry the same place address, such as clinic/pharmacy/shelf-3 or desk/left. The Locus API returns both for a place, and checks each fact that names an object against the physical record.
Set it up
- File a fact at a place with the Memory API:
POST /v1/memory/factswith"address": "desk/left"and an answer that names the object, for examplekeys. - Give the physical object the same address with the Spatial Memory API:
PUT /v1/spatial/spaces/{space_id}/instances/{instance_id}/address, and label itkeys. A whole space can also carry an address, such asdesk. - Ask the Locus API:
GET /v1/locus?address=desk.
What a check says
present | An object with that label is at the address and confirmed. |
pending | It was just seen there and is not yet confirmed. |
missing | It is recorded at the address but has not been seen there lately. |
elsewhere | An object with that label is recorded at another address. |
not_tracked | No object with that label is recorded. |
The answer carries the head of the Memory receipt chain and of each space's receipt chain for later verification. The Locus API needs a plan that includes both APIs and counts as one call.
GET /v1/locus
What a place should hold and what is there
For a place address (for example desk/left), returns the Memory API facts filed at or under it and the Spatial Memory API objects there, with a check of each fact that names an object against the physical record: present, pending, missing, elsewhere or not_tracked. Needs a plan with both APIs. Counted as one call.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
address required | query | string | Place address or the start of one, 1 to 5 lowercase segments, for example desk or desk/left. |
Responses
| 200 | Facts, objects and checks per place. |
| 400 | Invalid address. |
| 401 | Missing or invalid key. |
| 403 | The plan does not include both APIs. |
| 429 | Rate limited or allowance used. |
Example request
curl -X GET "https://api.qriton.com/v1/locus" \
-H "Authorization: Bearer $QRITON_API_KEY"
Example response
{
"address": "desk",
"count": 1,
"places": [
{
"address": "desk/left",
"facts": [
{
"fact_id": "f3",
"subject": "desk left",
"relation": "holds",
"answer": "keys"
}
],
"objects": [
{
"address": "desk/left",
"instance_id": "in_2f298c8e94c34887",
"label": "keys",
"status": "consolidated",
"unconfirmed": true,
"last_seen_at": "2026-11-14T22:18:07.000Z",
"space_id": "sp_ed9f47e8f83e6967"
}
],
"checks": [
{
"fact_id": "f3",
"expects": "keys",
"state": "missing",
"object": {
"instance_id": "in_2f298c8e94c34887",
"address": "desk/left",
"status": "consolidated",
"unconfirmed": true,
"last_seen_at": "2026-11-14T22:18:07.000Z"
}
}
]
}
],
"receipt_heads": {
"memory": "356ec7db…",
"spatial": {
"sp_ed9f47e8f83e6967": "646b142f…"
}
}
}
Scope and limits
- Labels, not recognition. A check compares the label of a Spatial Memory object with the answer of a Memory fact filed at the same address. It does not recognise objects, and labels and addresses match exactly.
- Inherited limits. The Locus API reads the Memory and the Spatial Memory API, so the limitations of both apply to its answers. A check is only as current as the last observation of the space.
- What the heads prove. The answer carries the head of the Memory receipt chain and of each space's chain. They let both sides be verified later; they do not prove that the physical state matched at any other time.