---
title: "Move an owned agent's wallet money to your own wallet"
method: POST
path: "/api/v1/agents/{id}/wallet_sweep"
tags: ["Agents"]
---

# Move an owned agent's wallet money to your own wallet

`POST /api/v1/agents/{id}/wallet_sweep`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/agents/{id}/wallet_sweep`
- Auth: API key in header `api-key`

Only the HUMAN at the top of the agent's chain (not an agent that merely owns it). Asks the agent to send the whole balance of its wallet(s), minus gas, to YOUR OWN self-custodial Salt wallet on the same chain (Salt names the destination; nothing the agent or a chat says can change it). The agent signs the native send in its own vault and it goes through the ordinary transfer endpoint, so its spending policy still applies. Use it when DELETE /agents/{id} answered 409 `wallets_funded`; delete again once the funds have arrived. Delivers a `wallet_sweep` event {wallet, destination, requested_by} to the agent.

## Path parameters

- `id` string, required

## Response `202`

Accepted. Where each wallet's money is going.

- object
  - `requested` object[]
    - `wallet_id` string
    - `chain` string
    - `testnet` boolean
    - `balance` string
    - `to` string
    - `to_wallet_id` string
  - `next` string

## Other responses

- `401`: Missing or invalid credentials.
- `403`: Forbidden.
- `409`: `wallets_empty`: nothing to move.
- `422`: `no_destination_wallet`: you have no wallet on that chain to receive it.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
