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

# Policies

Read the policy bound to a user's wallet.

## Read a wallet's policy

`GET /integrator/policies`

### Query parameters

- `walletAddress` `string` _(required)_: A wallet registered to an agent in this integration.
- `chainId` `integer`: Resolve only a wallet binding eligible for this chain.

### 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 wallet's current policy.

Body (`application/json`):

- `status` `string` _(required)_: `initial` until the user saves a policy.
- `policyId` `string | null` _(required)_
- `version` `integer` _(required)_: 0 in the initial state.
- `document` `object | null`: The saved policy document.

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

#### `403`: `wallet_chain_mismatch`: the wallet is registered to this integration but not for the requested chain.

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

#### `409`: `wallet_ambiguous`: the wallet resolves to more than one agent in this integration.

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

### Example request

```bash
curl 'https://internal.navalabs.dev/api/integrator/policies?walletAddress=0x742d35Cc6634C0532925a3b844Bc454e4438f44e&chainId=0' \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/policies?walletAddress=0x742d35Cc6634C0532925a3b844Bc454e4438f44e&chainId=0', {
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>'
  }
})
```
