Skip to main content
GET
Before a task runs, ask what a task of its workflow usually costs. The answer is a range, the 50th, 90th and 99th percentile, learned from your organisation’s own finished tasks of that workflow in the last 30 days. Transactions explains where the figures come from.
The key field is filled with a public demo key, so you can send a request without signing up. It reaches a shared demo workspace that resets every night, so do not send anything private. To call your own workspace, replace it with your key from Agents in the console.
Which tasks count:
  • Only tasks that completed, started in the last 30 days, and are not tasks Navige closed for being idle. At most the newest 2,000 are read.
  • Only API spend. Model calls made on a subscription plan are not part of a task’s cost here.
  • A task with a step Navige could not price is left out and counted in leftOut.unpricedTasks. A task that cost nothing in API spend is left out and counted in leftOut.zeroCostTasks. Neither is read as cheap.
The range is wide while there are few tasks and narrows as more arrive. With fewer than two priced tasks there is no range, and expected is null, not zero. An answer can be up to five minutes old.

Status codes

200 with the fields described below. A blank workflow key gets 400 with { "error": "…" }. If Navige cannot read the tasks, the answer is 503 with { "error": "the estimate could not be read" }. A key that is missing or not valid gets 401, and an agent that is inactive or expired gets 403. All money is in micro-USD: 1000000 is one US dollar.

Authorizations

x-navige-key
string
header
default:nv_docs_demo_nuJM-1NFjNqDKAeGoZ5-QaAfFAdVXv79
required

Your agent's Navige key, from Agents in the console. The docs fill in a public demo key that reaches a shared demo workspace, reset every night; paste your own to call your workspace.

Path Parameters

key
string
required

The workflow key, as you send it in x-navige-workflow or transaction.workflowKey. URL-encode it.

Maximum string length: 200

Response

The estimate. expected is null, not zero, until there are two priced tasks.

workflowKey
string
required
basedOnTasks
integer
required

How many priced tasks the range is learned from.

windowDays
enum<integer>
required
Available options:
30
expected
object | null
required
meanSteps
number | null
required

Mean model and tool steps per priced task, to one decimal place.

leftOut
object
required
note
string
required

The basis of the answer in words.