Migrations
Get Migration Agent Package
Return the exact migration gateway endpoints and call sequence for an agent.
GET
/
api
/
v1
/
migrations
/
{runId}
/
agent-package
Get Migration Agent Package
curl --request GET \
--url https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{"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."]}}
{"error":"Invalid API key"}
{"error":"Access denied to the migration run"}
{"error":"Migration run not found"}
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
Migration run ID.
curl "https://api.sequenzy.com/api/v1/migrations/run_123/agent-package" \
-H "Authorization: Bearer SEQUENZY_API_KEY"
Responses
{"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."]}}
{"error":"Invalid API key"}
{"error":"Access denied to the migration run"}
{"error":"Migration run not found"}
⌘I
Get Migration Agent Package
curl --request GET \
--url https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/migrations/{runId}/agent-package")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{"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."]}}
{"error":"Invalid API key"}
{"error":"Access denied to the migration run"}
{"error":"Migration run not found"}