Find the flow of a reference
Finds the one flow a reference belongs to, such as an order number, and pages through its facts.
Rules
- Send the reference as
referenceTypeandreferenceValue. Every other query parameter exceptfactsLimit,factsCursor,namespaceandtypeis a scope key, such asstoreId=store-sp-01foracme.order_id. - Scope matches by containment: no scope matches every scope of that type and value, a partial scope narrows, the full declared scope matches at most one reference. Sending a fact needs exactly the declared scope keys.
referenceValueis always the clear value, also for a protected type.- Always the current flow; it never carries
merge. - Facts are paged: pass
nextCursorasfactsCursor; it is omitted on the last page.factsLimitis 1 to 500 (default 100). - Optional
namespaceandtypelists filter the facts; see the parameters and the200response. - Protected values come back protected;
facts:revealreturns encrypted ones in clear form and never refuses the request. Responses carryCache-Control: no-store.
Responses
200the current flow and one page of its facts.404SF-0010no reference matches.409SF-0011several flows match: pick one fromcandidates[]and read it withgetFlow.422SF-0006a malformed reference or cursor;SF-0092a schema mismatch.503SF-0094retry later.
Parâmetros de consulta
Resposta
The current flow of the reference and one page of its facts; it never carries merge. With namespace and/or type (comma-separated dotted names, up to 20 each, one value per key, never a repeated key), only facts whose namespace is in the first list AND whose type is in the second are returned; an empty or omitted list matches everything; values inside a list are OR. An unregistered value matches nothing and the page is empty. Resend the same filter with factsCursor on every page. createdAt and updatedAt describe the whole flow, not the filtered page.

