---
title: "EOA to Safe migration wizard"
method: POST
path: "/v1/agents/{agent_id}/accounts/migrate"
tags: ["Agents"]
---

# EOA to Safe migration wizard

`POST /v1/agents/{agent_id}/accounts/migrate`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/agents/{agent_id}/accounts/migrate`
- Auth: HTTP bearer

Human-only. Provisions counterfactual Safe and returns sweep plan. Onchain module broadcast stubbed pre-audit.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- object
  - `chain` string, required
  - `deprecate_eoa` boolean

## Response `200`

Migration plan

- MigrationPlanResponse
  - `agent_id` string, uuid
  - `chain` string
  - `safe_address` string
  - `safe_version` string
  - `modules` string[]
  - `eoa_address` string
  - `sweep_instructions` object[]
    - `asset` string
    - `action` string
    - `note` string
  - `roles_config_hash` string
  - `allowance_config_hash` string
  - `warnings` string[]
  - `deploy_status` string

## Other responses

- `401`: Authentication required or invalid
- `403`: Insufficient permissions
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
