> ## Documentation Index
> Fetch the complete documentation index at: https://docs.navige.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Check a held decision

> Poll an approval you got back as pending from POST /enforce with wait set to false.

When a call to [Ask for a decision](https://docs.navige.ai/reference/enforce.md) 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](https://docs.navige.ai/connect/enforce.md#long-holds) explains when to use it.

> [!NOTE]
>
> 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](https://docs.navige.ai/reference/outcome.md).

```bash cURL theme={null}
curl https://api.navige.ai/enforce/status/01937c4e-8b2a-7f10-9c3d-5e6f7a8b9c0d \
  -H "x-navige-key: $NAVIGE_KEY"
```

```powershell PowerShell theme={null}
$approvalId = "01937c4e-8b2a-7f10-9c3d-5e6f7a8b9c0d"
Invoke-RestMethod -Uri "https://api.navige.ai/enforce/status/$approvalId" `
  -Headers @{ "x-navige-key" = $env:NAVIGE_KEY }
```

```python Python theme={null}
import os, requests

approval_id = "01937c4e-8b2a-7f10-9c3d-5e6f7a8b9c0d"
r = requests.get(
    f"https://api.navige.ai/enforce/status/{approval_id}",
    headers={"x-navige-key": os.environ["NAVIGE_KEY"]},
)
print(r.json()["decision"])
```

```json Pending theme={null}
{ "decision": "pending", "approvalId": "01937c4e-8b2a-7f10-9c3d-5e6f7a8b9c0d", "expiresAt": "2026-11-12T09:12:00.000Z" }
```

```json Approved theme={null}
{ "decision": "approved", "decidedBy": { "channel": "console", "memberId": "01936f0a-2d4b-7c8e-a1f2-3b4c5d6e7f80", "role": "admin" } }
```

```json Rejected theme={null}
{ "decision": "rejected", "reason": "denied by approver", "decidedBy": { "channel": "link", "memberId": null } }
```

```json Expired theme={null}
{ "decision": "expired", "reason": "approval request timed out" }
```

```json Not found theme={null}
{ "error": "not found" }
```


## OpenAPI

````yaml GET /enforce/status/{approvalId}
openapi: 3.1.0
info:
  title: Navige API
  version: 1.0.0
  description: >-
    The gateway's public API: ask for a decision before an agent acts, report
    usage and outcomes, and read what a task usually costs.
servers:
  - url: https://api.navige.ai
security:
  - navigeKey: []
  - bearer: []
tags:
  - name: Decisions
    description: Ask before an agent acts, and read what applies to your calls.
  - name: Usage and tasks
    description: Report what happened, and read what a task costs.
paths:
  /enforce/status/{approvalId}:
    get:
      tags:
        - Decisions
      summary: Check a held decision
      description: >-
        Poll an approval that `POST /enforce` answered `pending`, after sending
        `"wait": false`. Keep polling while it is `pending`.
      operationId: checkHeldDecision
      parameters:
        - schema:
            type: string
            format: uuid
            x-default: 01937c4e-8b2a-7f10-9c3d-5e6f7a8b9c0d
          example: 01937c4e-8b2a-7f10-9c3d-5e6f7a8b9c0d
          in: path
          name: approvalId
          required: true
          description: >-
            The `approvalId` from the `pending` answer, exactly as it was
            returned. An approval in another organisation reads as not found.
      responses:
        '200':
          description: The approval's state.
          content:
            application/json:
              schema:
                type: object
                required:
                  - decision
                additionalProperties: false
                properties:
                  decision:
                    type: string
                    enum:
                      - pending
                      - approved
                      - rejected
                      - expired
                    description: '`approved` means go; `rejected` and `expired` mean stop.'
                  approvalId:
                    type: string
                    format: uuid
                    description: 'With `pending`: the id you polled.'
                  expiresAt:
                    type: string
                    format: date-time
                    description: >-
                      With `pending`: a poll at or after this time answers
                      `expired`.
                  reason:
                    type: string
                    description: >-
                      With `rejected`: `denied by approver`. With `expired`:
                      `approval request timed out`.
                  decidedBy:
                    description: >-
                      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.
                    oneOf:
                      - type: object
                        required:
                          - channel
                          - memberId
                          - role
                        additionalProperties: false
                        properties:
                          channel:
                            enum:
                              - console
                          memberId:
                            type: string
                            format: uuid
                          role:
                            type:
                              - string
                              - 'null'
                            enum:
                              - owner
                              - admin
                              - viewer
                              - null
                            description: >-
                              The member's role now, not the role they held when
                              they decided.
                      - type: object
                        required:
                          - channel
                          - memberId
                        additionalProperties: false
                        properties:
                          channel:
                            enum:
                              - link
                          memberId:
                            type: 'null'
        '401':
          description: The key is missing (`missing`) or not valid (`invalid_key`).
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
                    description: What was wrong, in words.
        '403':
          description: >-
            The key's agent is inactive (`agent_inactive`) or expired
            (`agent_expired`).
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
                    description: What was wrong, in words.
        '404':
          description: No such approval in your organisation.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
                    description: What was wrong, in words.
components:
  securitySchemes:
    navigeKey:
      type: apiKey
      in: header
      name: x-navige-key
      description: >-
        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.
      x-default: nv_docs_demo_nuJM-1NFjNqDKAeGoZ5-QaAfFAdVXv79
    bearer:
      type: http
      scheme: bearer
      description: >-
        The same key as `Authorization: Bearer <key>`. Used only when
        `x-navige-key` is absent.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.