je_testing
Run journal-entry testing over a workspace's ledger package. Cost class: job.
The caller receives a 202 with a queued :class:~ndi_service.app.platform_api.results.Job immediately and polls GET /jobs/{id} for the :class:~ndi_service.app.platform_api.results.JetResult.
The agent orients itself in the tables the workspace holds, writes SQL over them itself, and answers with sql_receipts: every statement it ran, the tables each one registered (path, tab, and the view name the SQL used), and a bounded result. A figure in the answer is meant to be readable out of one of those receipts, and a receipt carries everything needed to re-run it.
paths scopes the run to exactly the files of the package under test; path_prefix scopes it to a folder, and the two add up: the run tests the folder's files plus the named ones. Omit both to test the whole workspace: the agent orients over every queryable file the caller can see and finds the ledger package itself, the same way deep-search behaves when unscoped. A run keeps its conversation: pass the result's session_id on a later request to ask a follow-up in the same thread.
reasoning_effort controls the thinking budget without changing the engine. Omit it for the route's default; null keeps the catalogue prescription.
allow_clarification lets the agent stop and ask instead of answering — early, for what the data cannot tell it (a threshold, the period or entity in scope, the client's definition of a term), or mid-run, for an ambiguity the work turned up. The succeeded result then carries the questions in clarification_questions with answer null. Answer them on the same session_id with the same query and clarification_answers, or with any follow-up query. Off (the default) the agent never asks.
exhausted: true means the step budget ran out before the procedure finished — a successful, partial response, not a failure.
Args: body: Testing parameters: query, context, reasoning_effort, path_prefix, paths, session_id, allow_clarification, clarification_answers. context: Resolved workspace plus the caller's access predicate. session: Database session. response: Injected by FastAPI for status-code management. temporal: Temporal client used to dispatch the workflow. wait_seconds: Bounded inline wait (0 → immediate 202). idempotency_key: Replaying with the same key returns the original job. search_model: Internal engine pin. report_usage: Internal usage-accounting switch. postprocessing: Internal optional-postprocessing mode; none skips the detached presentation/grounding sidecars after commit.
Returns: A queued :class:~ndi_service.app.platform_api.results.Job. On success the result is a :class:~ndi_service.app.platform_api.results.JetResult.
Request
- Base URLhttps://ndi-api.nace.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace identifier.
Query parameters
Bounded inline wait. 0 (the default) returns 202 immediately. Above 0 the route returns 200 with a terminal job if the work finished in time, and 202 with the still-running job if it did not. Either way, read status.
Headers
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.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.