> **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.

# Actions

Submit and inspect proposed actions.

## Submit a proposed action

`POST /transactions`

Creates a policy-evaluation request. Do not automatically retry an uncertain submission because the Developer Preview does not expose an idempotency key.

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

- `escrowAddress` `string` _(required)_: Registered wallet for the proposed chain.
- `prompt` `string` _(required)_: Short description for people and audit records. It is not a policy input and must not contain secrets or personal data.
- `proposedTx` `object` _(required)_
  - `protocol` `string` _(required)_
  - `chainId` `integer` _(required)_
- `metadata` `object`: Optional non-secret context.
- `contextLogs` `object`: Optional non-sensitive debugging context.
- `executionSignature` `string`
- `arbiter` `string`

### Responses

#### `201`: Transaction request created.

Body (`application/json`):

- `id` `string`
- `requestHash` `string` _(required)_
- `description` `string`
- `status` `string`: Transaction lifecycle state, not the Nava Guardian verdict.

#### `400`: The action or request body is invalid.

Body (`application/json`):

- `message` `string`

#### `401`: The agent key is absent or invalid.

#### `403`: The key lacks scope or does not own this request.

#### `429`: Request rate exceeded. Do not blindly retry a POST.

#### `500`: Service or dependency failure. Keep the action paused.

### Example request

```bash
curl https://api.example.navalabs.ai/transactions \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "escrowAddress": "string",
  "prompt": "string",
  "proposedTx": {
    "protocol": "string",
    "chainId": 0
  },
  "metadata": {},
  "contextLogs": {},
  "executionSignature": "string",
  "arbiter": "string"
}'
```

```ts
fetch('https://api.example.navalabs.ai/transactions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    escrowAddress: 'string',
    prompt: 'string',
    proposedTx: {
      protocol: 'string',
      chainId: 0
    },
    metadata: {},
    contextLogs: {},
    executionSignature: 'string',
    arbiter: 'string'
  })
})
```

## Read the Nava Guardian verdict

`GET /transactions/{requestHash}/approval-status`

Returns the approval-status envelope. A missing, null, or pending verdict is not approval; keep the action paused and retry within a bounded deadline.

### Path parameters

- `requestHash` `string` _(required)_: Exact request hash returned by the submit operation.

### Responses

#### `200`: Approval-status envelope.

Body (`application/json`):

- `verdict` `object`
  - `schemaVersion` `integer` _(required)_
  - `outcome` `string` _(required)_
  - `reasonCode` `string` _(required)_
  - `humanReason` `string` _(required)_
  - `triggeringPolicyField` `string | null` _(required)_
  - `checks` `object[]` _(required)_
    - `checkId` `string` _(required)_
    - `status` `string` _(required)_
    - `code` `string` _(required)_
    - `humanReason` `string` _(required)_
    - `triggeringPolicyField` `string | null` _(required)_
    - `legIndex` `integer`: Zero-based index for a leg-specific result in a multi-leg action.
  - `evidence` `object` _(required)_
    - `decodedAction` `object | null` _(required)_
    - `decodedActions` `object[]`: Decoded legs for a multi-action or multi-swap submission.
    - `observations` `object` _(required)_
    - `sources` `string[]` _(required)_
  - `policyVersion` `integer | null` _(required)_
  - `latencyMs` `integer` _(required)_
  - `dataFreshness` `object` _(required)_
    - `overall` `string` _(required)_
    - `sources` `object[]` _(required)_
      - `source` `string` _(required)_
      - `status` `string` _(required)_
      - `asOf` `string <date-time>` _(required)_
      - `ageMs` `integer` _(required)_
  - `trust` `object` _(required)_
    - `level` `string` _(required)_
    - `notes` `string | null` _(required)_
  - `redaction` `object` _(required)_
    - `redacted` `boolean` _(required)_
    - `fields` `string[]` _(required)_
  - `usdNotional` `number | null` _(required)_
  - `timestamp` `string <date-time>` _(required)_

#### `401`: The agent key is absent or invalid.

#### `403`: The key lacks scope or does not own this request.

#### `404`: Request hash not found.

#### `429`: Request rate exceeded. Do not blindly retry a POST.

#### `500`: Service or dependency failure. Keep the action paused.

### Example request

```bash
curl https://api.example.navalabs.ai/transactions/string/approval-status
```

```ts
fetch('https://api.example.navalabs.ai/transactions/string/approval-status')
```
