> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://docs.navalabs.ai/api/mcp` to find what you need.

# Verifications

Verify, read, report and cancel proposed transactions.

## Verify a proposed transaction

`POST /integrator/verifications`

Nava checks the transaction against the wallet's policy. The response usually already includes the verdict; if `verdict` is null, poll `GET /integrator/verifications/{id}`.

### Header parameters

- `x-app-id` `string` _(required)_: Your integration's public app ID (NAVA_APP_ID), not its internal integration ID.
- `x-api-key` `string` _(required)_: Your integration API key (NAVA_INTEGRATION_KEY). Server only.
- `Idempotency-Key` `string`: Optional, but needed to retry safely. Use one key per action and store it before sending. A retry with the same key and the exact same body returns the original verification; a different body returns 409 idempotency_conflict. 1 to 128 visible ASCII characters.

### Request body (required) (`application/json`)

- `escrowAddress` `string` _(required)_: The user's wallet.
- `prompt` `string` _(required)_: What the user asked for. Shown to people; not a policy input.
- `proposedTx` `object` _(required)_: The exact transaction to verify, for example `{ protocol, chainId, to, value, data }`.
- `metadata` `object`: Optional non-secret context.

### Responses

#### `201`: The verification, usually with its verdict.

Body (`application/json`):

- `id` `string <uuid>` _(required)_
- `requestHash` `string | null` _(required)_
- `status` `string` _(required)_: Lifecycle state. It can stay `PENDING` after a verdict; read `verdict.outcome`.
- `verdict` `object` _(required)_
  - `outcome` `string` _(required)_
  - `reasonCode` `string` _(required)_: `allowed` when approved, otherwise the deciding check, for example `per_tx_cap_exceeded`.
  - `humanReason` `string` _(required)_
  - `policyVersion` `integer | null`
  - `usdNotional` `number | null`
  - `checks` `object[]`: One result per policy check.
    - `checkId` `string`
    - `status` `string`
    - `code` `string | null`
    - `humanReason` `string`
- `canExecute` `boolean` _(required)_: True when the verdict is approved and the transaction is not yet settled.
- `agentId` `string | null` _(required)_: Agent resolved from the wallet binding at submission; frozen on the verification.
- `policyId` `string | null` _(required)_: Stable policy evaluated at admission; frozen on the verification.
- `policyVersion` `integer | null` _(required)_: Policy version evaluated at admission; frozen on the verification.
- `executionTxHash` `string | null` _(required)_
- `executedAt` `string | null` _(required)_

#### `400`: Invalid request body or Idempotency-Key.

#### `401`: Missing or invalid x-app-id or x-api-key.

#### `403`: The wallet is not registered for the transaction's chain.

#### `404`: The wallet is not registered to this integration.

#### `409`: The Idempotency-Key was already used with a different body (idempotency_conflict).

#### `422`: `policy_not_active`: the wallet is bound to this integration but its agent has no active policy.

#### `429`: Rate limited (60 requests per minute).

### Example request

```bash
curl https://internal.navalabs.dev/api/integrator/verifications \
  --request POST \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "escrowAddress": "0x31eab6c6efe47e997a23461a154bbebd609ccdf3",
  "prompt": "Swap 5 USDC for USDT",
  "proposedTx": {
    "protocol": "uniswap_v3",
    "chainId": 1,
    "to": "0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af",
    "value": "0",
    "data": "0x3593564c…"
  }
}'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/verifications', {
  method: 'POST',
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    escrowAddress: '0x31eab6c6efe47e997a23461a154bbebd609ccdf3',
    prompt: 'Swap 5 USDC for USDT',
    proposedTx: {
      protocol: 'uniswap_v3',
      chainId: 1,
      to: '0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af',
      value: '0',
      data: '0x3593564c…'
    }
  })
})
```

## Read a verification

`GET /integrator/verifications/{id}`

### Path parameters

- `id` `string` _(required)_: The verification `id` (UUID) or its `requestHash`.

### Header parameters

- `x-app-id` `string` _(required)_: Your integration's public app ID (NAVA_APP_ID), not its internal integration ID.
- `x-api-key` `string` _(required)_: Your integration API key (NAVA_INTEGRATION_KEY). Server only.

### Responses

#### `200`: The verification and its verdict.

Body (`application/json`):

- `id` `string <uuid>` _(required)_
- `requestHash` `string | null` _(required)_
- `status` `string` _(required)_: Lifecycle state. It can stay `PENDING` after a verdict; read `verdict.outcome`.
- `verdict` `object` _(required)_
  - `outcome` `string` _(required)_
  - `reasonCode` `string` _(required)_: `allowed` when approved, otherwise the deciding check, for example `per_tx_cap_exceeded`.
  - `humanReason` `string` _(required)_
  - `policyVersion` `integer | null`
  - `usdNotional` `number | null`
  - `checks` `object[]`: One result per policy check.
    - `checkId` `string`
    - `status` `string`
    - `code` `string | null`
    - `humanReason` `string`
- `canExecute` `boolean` _(required)_: True when the verdict is approved and the transaction is not yet settled.
- `agentId` `string | null` _(required)_: Agent resolved from the wallet binding at submission; frozen on the verification.
- `policyId` `string | null` _(required)_: Stable policy evaluated at admission; frozen on the verification.
- `policyVersion` `integer | null` _(required)_: Policy version evaluated at admission; frozen on the verification.
- `executionTxHash` `string | null` _(required)_
- `executedAt` `string | null` _(required)_

#### `401`: Missing or invalid x-app-id or x-api-key.

#### `404`: Not found in this integration.

### Example request

```bash
curl https://internal.navalabs.dev/api/integrator/verifications/823582b8-83b7-470f-801d-01a98fa198e1 \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/verifications/823582b8-83b7-470f-801d-01a98fa198e1', {
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>'
  }
})
```

## Report execution

`POST /integrator/verifications/{id}/execution`

Record that an approved transaction was executed. Reporting the same `txHash` again returns the executed verification.

### Path parameters

- `id` `string` _(required)_: The verification `id` (UUID) or its `requestHash`.

### Header parameters

- `x-app-id` `string` _(required)_: Your integration's public app ID (NAVA_APP_ID), not its internal integration ID.
- `x-api-key` `string` _(required)_: Your integration API key (NAVA_INTEGRATION_KEY). Server only.

### Request body (required) (`application/json`)

- `txHash` `string`: The on-chain transaction hash. Omit only for Hyperliquid orders.

### Responses

#### `201`: The verification, now EXECUTED.

Body (`application/json`):

- `id` `string <uuid>` _(required)_
- `requestHash` `string | null` _(required)_
- `status` `string` _(required)_: Lifecycle state. It can stay `PENDING` after a verdict; read `verdict.outcome`.
- `verdict` `object` _(required)_
  - `outcome` `string` _(required)_
  - `reasonCode` `string` _(required)_: `allowed` when approved, otherwise the deciding check, for example `per_tx_cap_exceeded`.
  - `humanReason` `string` _(required)_
  - `policyVersion` `integer | null`
  - `usdNotional` `number | null`
  - `checks` `object[]`: One result per policy check.
    - `checkId` `string`
    - `status` `string`
    - `code` `string | null`
    - `humanReason` `string`
- `canExecute` `boolean` _(required)_: True when the verdict is approved and the transaction is not yet settled.
- `agentId` `string | null` _(required)_: Agent resolved from the wallet binding at submission; frozen on the verification.
- `policyId` `string | null` _(required)_: Stable policy evaluated at admission; frozen on the verification.
- `policyVersion` `integer | null` _(required)_: Policy version evaluated at admission; frozen on the verification.
- `executionTxHash` `string | null` _(required)_
- `executedAt` `string | null` _(required)_

#### `400`: txHash is missing for an on-chain transaction.

#### `401`: Missing or invalid x-app-id or x-api-key.

#### `404`: Not found in this integration.

#### `409`: The verification is not approved, was cancelled, or was already executed with a different txHash.

### Example request

```bash
curl https://internal.navalabs.dev/api/integrator/verifications/823582b8-83b7-470f-801d-01a98fa198e1/execution \
  --request POST \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "txHash": "0x6a1f0c3d9b2e4f5a8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b"
}'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/verifications/823582b8-83b7-470f-801d-01a98fa198e1/execution', {
  method: 'POST',
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    txHash: '0x6a1f0c3d9b2e4f5a8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b'
  })
})
```

## Cancel a verification

`POST /integrator/verifications/{id}/cancel`

Release a verification you will not execute. A verification that is already settled is returned unchanged. Cancelling releases the reserved spend for EVM transactions. A Hyperliquid order's spend hold clears only when Hyperliquid reports the order filled or finished.

### Path parameters

- `id` `string` _(required)_: The verification `id` (UUID) or its `requestHash`.

### Header parameters

- `x-app-id` `string` _(required)_: Your integration's public app ID (NAVA_APP_ID), not its internal integration ID.
- `x-api-key` `string` _(required)_: Your integration API key (NAVA_INTEGRATION_KEY). Server only.

### Responses

#### `200`: The verification, now CANCELLED.

Body (`application/json`):

- `id` `string <uuid>` _(required)_
- `requestHash` `string | null` _(required)_
- `status` `string` _(required)_: Lifecycle state. It can stay `PENDING` after a verdict; read `verdict.outcome`.
- `verdict` `object` _(required)_
  - `outcome` `string` _(required)_
  - `reasonCode` `string` _(required)_: `allowed` when approved, otherwise the deciding check, for example `per_tx_cap_exceeded`.
  - `humanReason` `string` _(required)_
  - `policyVersion` `integer | null`
  - `usdNotional` `number | null`
  - `checks` `object[]`: One result per policy check.
    - `checkId` `string`
    - `status` `string`
    - `code` `string | null`
    - `humanReason` `string`
- `canExecute` `boolean` _(required)_: True when the verdict is approved and the transaction is not yet settled.
- `agentId` `string | null` _(required)_: Agent resolved from the wallet binding at submission; frozen on the verification.
- `policyId` `string | null` _(required)_: Stable policy evaluated at admission; frozen on the verification.
- `policyVersion` `integer | null` _(required)_: Policy version evaluated at admission; frozen on the verification.
- `executionTxHash` `string | null` _(required)_
- `executedAt` `string | null` _(required)_

#### `401`: Missing or invalid x-app-id or x-api-key.

#### `404`: Not found in this integration.

#### `409`: The verification was already executed.

### Example request

```bash
curl https://internal.navalabs.dev/api/integrator/verifications/823582b8-83b7-470f-801d-01a98fa198e1/cancel \
  --request POST \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/verifications/823582b8-83b7-470f-801d-01a98fa198e1/cancel', {
  method: 'POST',
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>'
  }
})
```
