Skip to main content
POST
locate

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string | null

Replaying a request with the same key returns the original job with 200, never a second job. The key is kept with the job for replay and never cleared, so it must not contain personal data.

Maximum string length: 200

Path Parameters

workspace_id
string<uuid>
required

Workspace identifier.

Body

application/json

Request for locate: where in the workspace a piece of information is.

The navigator NDI's own agent calls as ndi-locate, over the files the caller may see. It is stateless: what a caller was already offered (exclude) and has read (already_read) is left out of the answer only when sent back, as a run's memory does it for NDI's agent. A call that leaves out nothing is the caller's opening and rates more files.

need
string
required

What is still needed, in a few words: a year, an entity, a line item, a definition.

Required string length: 1 - 400
already_read
LocateRead · object[]

Reads already done: their pieces are left out, and the navigator is told they did not settle the need.

Maximum array length: 1000
every
boolean
default:false

The need names a kind of file and every one is wanted (each invoice, every statement): the navigator rates each file of that kind and lists the members in population.

exclude
LocatePiece · object[]

Pieces earlier locates offered, left out of this answer.

Maximum array length: 1000
k
integer
default:12

How many pieces to name.

Required range: 1 <= x <= 24
path_prefix
string | null

Only files under this folder, workspace-relative; paths adds files. Omit both for the whole workspace.

paths
string[] | null

Only these uploaded files (with path_prefix, its folder's files too). Unknown or inaccessible paths are refused.

Minimum array length: 1
Required string length: 1 - 1024
question
string | null

The whole question the need is part of; every decision weighs the need within it. Omit it and the need is the whole question.

Required string length: 1 - 4096

Response

Successful Response

Response of locate: the reply NDI's agent reads, and the same findings as fields.

pages
LocatedPiece · object[]
required

The pieces named, best first.

population
LocatedMember · object[]
required

Set when answering needs every file of a kind (each invoice, every contract): the members, best first.

tables
LocatedTableRef · object[]
required

The tables rated for the need, best first.

text
string
required

The reply as NDI's own agent reads it: each piece with the command that reads it and its opening text, then a population's members and the tables to query.

job_id
string<uuid> | null

The external operation job.

population_unrated
integer
default:0

Files in folders rated likely to hold members that the budget ran out before rating: when above 0, population is incomplete; narrow the need to a folder, kind or period and locate again with every.