> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Migration Agent Package

> Return the exact migration gateway endpoints and call sequence for an agent.

# Get Migration Agent Package

Returns provider, run ID, endpoint URLs, auth instructions, exact method
sequence, and migration-agent instructions.

Agents must preserve source email HTML exactly. Migrated campaigns, templates,
and sequence emails should be copied as raw HTML, not recreated or converted
into Sequenzy blocks. If exact provider HTML is unavailable, flag the item for
manual review.

## Request

<ParamField path="runId" type="string" required>
  Migration run ID.
</ParamField>

```bash theme={null}
curl "https://api.sequenzy.com/api/v1/migrations/run_123/agent-package" \
  -H "Authorization: Bearer SEQUENZY_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {"success":true,"data":{"runId":"run_123","provider":"kit","systemPrompt":"Preserve provider email HTML exactly...","instructions":["Do not convert migrated HTML into Sequenzy blocks or recreate the email from its visible text."],"endpoints":{"connectSource":"https://api.sequenzy.com/api/v1/migrations/run_123/connect-source"},"sequence":["POST connect-source with the provider credential."]}}
  ```

  ```json 401 theme={null}
  {"error":"Invalid API key"}
  ```

  ```json 403 theme={null}
  {"error":"Access denied to the migration run"}
  ```

  ```json 404 theme={null}
  {"error":"Migration run not found"}
  ```
</ResponseExample>
