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/facts with "address": "desk/left" and an answer that names the object, for example keys.
  • Give the physical object the same address with the Spatial Memory API: PUT /v1/spatial/spaces/{space_id}/instances/{instance_id}/address, and label it keys. A whole space can also carry an address, such as desk.
  • Ask the Locus API: GET /v1/locus?address=desk.

What a check says

presentAn object with that label is at the address and confirmed.
pendingIt was just seen there and is not yet confirmed.
missingIt is recorded at the address but has not been seen there lately.
elsewhereAn object with that label is recorded at another address.
not_trackedNo 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

NameInTypeDescription
address requiredquerystringPlace address or the start of one, 1 to 5 lowercase segments, for example desk or desk/left.

Responses

200Facts, objects and checks per place.
400Invalid address.
401Missing or invalid key.
403The plan does not include both APIs.
429Rate 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.