Skip to main content
POST
Send this after a model call that did not go through the proxy. Navige records it against the key’s agent and prices it. It decides nothing: the kill switch, budgets and policies do not run on this path. Usage import explains when to use it.
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.

What to send

Send costUsd, or at least one of inputTokens and outputTokens. A field sent as null is treated as not sent.

Status codes

201 with the fields described below. A body Navige refuses gets 400 with { "error": "…" } naming the problem, and nothing is stored. A key that is missing or not valid gets 401, and an agent that is inactive or expired gets 403.

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.

Headers

x-navige-client
string

Which app on a computer connected with navige connect is calling. The call lands on that app's own agent. You rarely send it by hand.

Body

application/json
model
string
required

The model id as the provider spells it. Leading and trailing spaces are removed, and an empty value is refused.

Maximum string length: 200
Example:

"claude-sonnet-5-5"

provider
string

Who served the call. Used to find the price when the same model id has more than one.

Maximum string length: 100
Example:

"anthropic"

inputTokens
integer

Prompt tokens.

Required range: 0 <= x <= 2147483647
Example:

1200

outputTokens
integer

Completion tokens.

Required range: 0 <= x <= 2147483647
Example:

350

costUsd
number

What the call cost, in US dollars, if you know it. Stored to six decimal places. When you send it, Navige uses it and does not price the tokens.

Required range: x >= 0
occurredAt
string

When the call happened, in ISO 8601: a date, or a date and time with an optional offset; no offset is read as UTC. Defaults to now. Refused before the year 2000 or more than five minutes in the future. More than 35 days ago is recorded with a warning.

Example:

"2026-11-11T22:05:00Z"

Response

The usage event was recorded.

id
string<uuid>
required

The recorded usage event.

costUsd
number | null
required

The cost recorded, in US dollars. null when Navige has no price for the model: recorded as unpriced, not as free.

costSource
enum<string>
required

reported: you sent costUsd. computed: Navige priced the tokens. unknown: no price, and costUsd is null.

Available options:
reported,
computed,
unknown
warning
string

Present when occurredAt is more than 35 days ago.