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

# Wallets

Register, rotate and remove execution wallets on those agents.

## Register an execution wallet

`POST /integrator/agents/{agentId}/wallets`

Requires integrator:wallets:write in the integration, key and active user grant. Registration starts pending and proves no signer authority. Omitted or null chainId registers on all chains. No creation idempotency key is supported; reconcile uncertain writes through agent reads.

### Path parameters

- `agentId` `string <uuid>` _(required)_

### Query parameters

- `partnerUserRef` `string` _(required)_: Partner-side user reference bound during consent. Derive it from your authenticated session and encode query values.

### 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`)

- `address` `string` _(required)_: EVM wallet address; registering it is not proof of signer authority.
- `chainId` `integer | null`: Omitted or null means all chains. SDK callers omit rather than pass null.
- `label` `string | null`: Optional label. SDK callers omit rather than pass null.

### Responses

#### `201`: The registered wallet.

Body (`application/json`):

- `id` `string <uuid>` _(required)_
- `address` `string` _(required)_: EVM wallet address; registering it is not proof of signer authority.
- `chainId` `integer | null` _(required)_: Null means all chains.
- `label` `string | null` _(required)_
- `verificationStatus` `string` _(required)_
- `verifiedAt` `string | null` _(required)_
- `createdAt` `string <date-time>` _(required)_

#### `400`: Invalid body, partnerUserRef or resource UUID, a duplicate wallet on the same agent, or an agent/wallet limit reached.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

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

#### `403`: grant_revoked means the user revoked access; ask for consent again. Plain forbidden means a missing key scope and requires a configuration change.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

#### `404`: No active grant covers this user/scope, the integration no longer allows it, or a requested agent/wallet is inaccessible. Do not treat every resource 404 as missing consent.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

#### `409`: The wallet address conflicts with an existing registration.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

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

### Example request

```bash
curl 'https://internal.navalabs.dev/api/integrator/agents/00000000-0000-4000-8000-000000000001/wallets?partnerUserRef=partner-user-42' \
  --request POST \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "chainId": 1,
  "label": "Ethereum trading wallet"
}'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/agents/00000000-0000-4000-8000-000000000001/wallets?partnerUserRef=partner-user-42', {
  method: 'POST',
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    address: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e',
    chainId: 1,
    label: 'Ethereum trading wallet'
  })
})
```

## Change a wallet's address

`PATCH /integrator/agents/{agentId}/wallets/{walletId}`

Requires integrator:wallets:write in the integration, key and active user grant. Changes only address, preserves chainId and label, and resets verificationStatus to pending and verifiedAt to null when the address changes. Sending the same address leaves verification unchanged.

### Path parameters

- `agentId` `string <uuid>` _(required)_
- `walletId` `string <uuid>` _(required)_

### Query parameters

- `partnerUserRef` `string` _(required)_: Partner-side user reference bound during consent. Derive it from your authenticated session and encode query values.

### 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`)

- `address` `string` _(required)_: EVM wallet address; registering it is not proof of signer authority.

### Responses

#### `200`: The updated wallet.

Body (`application/json`):

- `id` `string <uuid>` _(required)_
- `address` `string` _(required)_: EVM wallet address; registering it is not proof of signer authority.
- `chainId` `integer | null` _(required)_: Null means all chains.
- `label` `string | null` _(required)_
- `verificationStatus` `string` _(required)_
- `verifiedAt` `string | null` _(required)_
- `createdAt` `string <date-time>` _(required)_

#### `400`: Invalid body, partnerUserRef or resource UUID, a duplicate wallet on the same agent, or an agent/wallet limit reached.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

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

#### `403`: grant_revoked means the user revoked access; ask for consent again. Plain forbidden means a missing key scope and requires a configuration change.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

#### `404`: No active grant covers this user/scope, the integration no longer allows it, or a requested agent/wallet is inaccessible. Do not treat every resource 404 as missing consent.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

#### `409`: The wallet address conflicts with an existing registration.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

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

### Example request

```bash
curl 'https://internal.navalabs.dev/api/integrator/agents/00000000-0000-4000-8000-000000000001/wallets/00000000-0000-4000-8000-000000000002?partnerUserRef=partner-user-42' \
  --request PATCH \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/agents/00000000-0000-4000-8000-000000000001/wallets/00000000-0000-4000-8000-000000000002?partnerUserRef=partner-user-42', {
  method: 'PATCH',
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    address: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e'
  })
})
```

## Remove a wallet

`DELETE /integrator/agents/{agentId}/wallets/{walletId}`

Requires integrator:wallets:write in the integration, key and active user grant. The SDK resolves without a value.

### Path parameters

- `agentId` `string <uuid>` _(required)_
- `walletId` `string <uuid>` _(required)_

### Query parameters

- `partnerUserRef` `string` _(required)_: Partner-side user reference bound during consent. Derive it from your authenticated session and encode query values.

### 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 was removed.

Body (`application/json`):

- `deleted` `boolean` _(required)_

#### `400`: Invalid body, partnerUserRef or resource UUID, a duplicate wallet on the same agent, or an agent/wallet limit reached.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

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

#### `403`: grant_revoked means the user revoked access; ask for consent again. Plain forbidden means a missing key scope and requires a configuration change.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

#### `404`: No active grant covers this user/scope, the integration no longer allows it, or a requested agent/wallet is inaccessible. Do not treat every resource 404 as missing consent.

Body (`application/json`):

- `code` `string` _(required)_
- `message` `string | string[]`
- `statusCode` `integer`

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

### Example request

```bash
curl 'https://internal.navalabs.dev/api/integrator/agents/00000000-0000-4000-8000-000000000001/wallets/00000000-0000-4000-8000-000000000002?partnerUserRef=partner-user-42' \
  --request DELETE \
  --header 'x-app-id: <NAVA_APP_ID>' \
  --header 'x-api-key: <NAVA_INTEGRATION_KEY>'
```

```ts
fetch('https://internal.navalabs.dev/api/integrator/agents/00000000-0000-4000-8000-000000000001/wallets/00000000-0000-4000-8000-000000000002?partnerUserRef=partner-user-42', {
  method: 'DELETE',
  headers: {
    'x-app-id': '<NAVA_APP_ID>',
    'x-api-key': '<NAVA_INTEGRATION_KEY>'
  }
})
```
