Skip to main content
GET
When a call to Ask for a decision needs a person’s approval and you sent "wait": false, the answer is pending with an approvalId. Poll this endpoint with that id until the decision is settled. Decision API 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.

Status codes

200 with one of the four decisions below. A key that is missing or not valid gets 401, and an agent that is inactive or expired gets 403. An approvalId that does not exist, belongs to another organisation, or is not a well-formed id gets 404 with { "error": "not found" }. The answer carries no transactionId. Keep the one from the pending answer for Report a task’s outcome.

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

approvalId
string<uuid>
required

The approvalId from the pending answer, exactly as it was returned. An approval in another organisation reads as not found.

Response

The approval's state.

decision
enum<string>
required

approved means go; rejected and expired mean stop.

Available options:
pending,
approved,
rejected,
expired
approvalId
string<uuid>

With pending: the id you polled.

expiresAt
string<date-time>

With pending: a poll at or after this time answers expired.

reason
string

With rejected: denied by approver. With expired: approval request timed out.

decidedBy
object

Who settled the approval. console when a member decided in the console. link when the decision came from an approve or deny link in an email or Slack message: the links need no sign-in, so memberId is null.