Skip to main content ホーム クリエイター jeremylongshore tons-of-skills-marketplace instantly-upgrade-migration
instantly-upgrade-migration Migrate Instantly.ai integrations from API v1 to v2.
Use when upgrading from deprecated v1 endpoints, updating authentication,
or migrating endpoint paths and request formats.
Trigger with phrases like "instantly v1 to v2", "instantly api migration",
"instantly upgrade", "instantly deprecated", "migrate instantly api".
インストールへ移動 Skills Marketplace コミュニティが作成したAIスキルを発見・探索
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill instantly-upgrade-migrationコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
Zipをダウンロード ダウンロード中... このリポジトリの他の Skills langchain-deploy-integration Deploy a LangChain 1.0 / LangGraph 1.0 app to Cloud Run, Vercel, or LangServe correctly — with timeouts sized for chain length, cold-start mitigation, SSE anti-buffering headers, and Secret Manager over .env. Use when prepping a first production deploy, debugging a stream that hangs behind a proxy, or diagnosing p99 latency spikes. Trigger with "langchain deploy", "langchain cloud run", "langchain vercel python", "langchain langserve", or "langchain docker".
langchain-langgraph-agents Build a correct LangGraph 1.0 ReAct agent with create_react_agent — typed tools, error propagation, recursion caps, and stop conditions that actually stop. Use when writing a first tool-calling agent, migrating from AgentExecutor or initialize_agent, or diagnosing an agent that loops on vague prompts. Trigger with "langgraph agent", "create_react_agent", "langgraph tool calling", "AgentExecutor migration", or "agent loop cost".
langchain-langgraph-human-in-loop Build LangGraph 1.0 human-in-the-loop approval flows with interrupt_before /
interrupt_after and Command(resume=...) — JSON-serializable state, clean
resume semantics, and UI wiring for approval decisions. Use when adding an
approval gate before an expensive tool call, wiring a Slack/web UI for agent
approvals, or debugging a graph that crashes on interrupt.
Trigger with "langgraph human in loop", "langgraph interrupt_before",
"langgraph approval flow", "Command resume", "langgraph HITL".
name instantly-upgrade-migration description Migrate Instantly.ai integrations from API v1 to v2.
Use when upgrading from deprecated v1 endpoints, updating authentication,
or migrating endpoint paths and request formats.
Trigger with phrases like "instantly v1 to v2", "instantly api migration",
"instantly upgrade", "instantly deprecated", "migrate instantly api".
allowed-tools Read, Write, Edit, Bash(npm:*), Grep version 1.12.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","instantly","migration","upgrade"] compatibility Designed for Claude Code
Instantly Upgrade Migration: API v1 to v2
Overview
Migrate from Instantly API v1 (deprecated January 2026) to API v2. Key changes: Bearer token auth replaces query-string API keys, REST-standard endpoints replace legacy paths, scoped API keys replace single global key, and cursor-based pagination replaces offset pagination. Existing v1 integrations via Zapier/Make continue working, but new integrations must use v2.
Prerequisites
Existing Instantly API v1 integration
Access to Instantly dashboard to generate v2 API keys
Understanding of Bearer token authentication
Migration Map
Authentication Change
const v1Url = `https://api.instantly.ai/api/v1/campaign/list?api_key=${API_KEY} ` ;
const v2Response = await fetch ("https://api.instantly.ai/api/v2/campaigns" , {
headers : { Authorization : `Bearer ${API_KEY} ` },
});
Endpoint Migration Table
Operation v1 Endpoint v2 Endpoint Method Change List campaigns GET /api/v1/campaign/listGET /api/v2/campaignsSame Get campaign GET /api/v1/campaign/getGET /api/v2/campaigns/{id}Query -> Path param Create campaign POST /api/v1/campaign/createPOST /api/v2/campaignsREST standard Launch campaign POST /api/v1/campaign/launchPOST /api/v2/campaigns/{id}/activateNew path Pause campaign
POST /api/v1/campaign/pause
POST /api/v2/campaigns/{id}/pause
Add leads POST /api/v1/lead/addPOST /api/v2/leadsSimplified
List leads GET /api/v1/lead/listPOST /api/v2/leads/listGET -> POST
Delete leads POST /api/v1/lead/deleteDELETE /api/v2/leads/{id}REST standard
Get analytics GET /api/v1/analytics/campaignGET /api/v2/campaigns/analyticsNew path
List accounts GET /api/v1/account/listGET /api/v2/accountsSimplified
Request Body Changes
const v1Body = {
api_key : "your-key" ,
name : "Campaign Name" ,
};
const v2Body = {
name : "Campaign Name" ,
campaign_schedule : {
start_date : "2026-04-01" ,
schedules : [{
name : "Business Hours" ,
timing : { from : "09:00" , to : "17:00" },
days : { "1" : true , "2" : true , "3" : true , "4" : true , "5" : true , "0" : false , "6" : false },
timezone : "America/New_York" ,
}],
},
sequences : [{
steps : [{
type : "email" ,
delay : 0 ,
variants : [{ subject : "Hello {{firstName}}" , body : "Hi {{firstName}}..." }],
}],
}],
};
Lead Operation Changes
const v1AddLeads = {
api_key : "your-key" ,
campaign_id : "campaign-uuid" ,
leads : [
{ email : "user@example.com" , first_name : "Jane" },
],
};
const v2AddLead = {
campaign : "campaign-uuid" ,
email : "user@example.com" ,
first_name : "Jane" ,
skip_if_in_workspace : true ,
verify_leads_on_import : true ,
custom_variables : { role : "CTO" },
};
Instructions
Step 1: Audit Existing v1 Calls set -euo pipefail
grep -rn "api/v1/" src/ --include="*.ts" --include="*.js" --include="*.py" || echo "No v1 calls found"
grep -rn "api_key=" src/ --include="*.ts" --include="*.js" --include="*.py" || echo "No query-string keys found"
Step 2: Create Migration Adapter
export class InstantlyV1ToV2Adapter {
private apiKey : string ;
private baseUrl = "https://api.instantly.ai/api/v2" ;
constructor (apiKey : string ) {
this .apiKey = apiKey;
}
private async request<T>(path : string , options : RequestInit = {}): Promise <T> {
const res = await fetch (`${this .baseUrl} ${path} ` , {
...options,
headers : {
"Content-Type" : "application/json" ,
Authorization : `Bearer ${this .apiKey} ` ,
...options.headers ,
},
});
if (!res.ok ) throw new Error (`Instantly ${res.status} : ${await res.text()} ` );
return res.json () as Promise <T>;
}
async listCampaigns ( ) {
return this .request ("/campaigns?limit=100" );
}
async getCampaign (campaignId : string ) {
return this .request (`/campaigns/${campaignId} ` );
}
async launchCampaign (campaignId : string ) {
return this .request (`/campaigns/${campaignId} /activate` , { method : "POST" });
}
async pauseCampaign (campaignId : string ) {
return this .request (`/campaigns/${campaignId} /pause` , { method : "POST" });
}
async addLeads (campaignId : string , leads : Array <{ email: string ; first_name?: string }> ) {
const results = [];
for (const lead of leads) {
const result = await this .request ("/leads" , {
method : "POST" ,
body : JSON .stringify ({
campaign : campaignId,
email : lead.email ,
first_name : lead.first_name ,
skip_if_in_workspace : true ,
}),
});
results.push (result);
}
return results;
}
async getCampaignAnalytics (campaignId : string ) {
return this .request (`/campaigns/analytics?id=${campaignId} ` );
}
}
Step 3: Pagination Migration
async function * paginateV2<T extends { id : string }>(
path : string ,
pageSize = 100
): AsyncGenerator <T[]> {
let startingAfter : string | undefined ;
while (true ) {
const qs = new URLSearchParams ({ limit : String (pageSize) });
if (startingAfter) qs.set ("starting_after" , startingAfter);
const page = await instantly<T[]>(`${path} ?${qs} ` );
if (page.length === 0 ) break ;
yield page;
startingAfter = page[page.length - 1 ].id ;
if (page.length < pageSize) break ;
}
}
Step 4: New v2 Features to Adopt
await instantly ("/api-keys" , {
method : "POST" ,
body : JSON .stringify ({ name : "analytics-only" , scopes : ["campaigns:read" ] }),
});
await instantly ("/subsequences" , {
method : "POST" ,
body : JSON .stringify ({
parent_campaign : campaignId,
name : "Re-engage interested leads" ,
conditions : { crm_status : [1 ] },
}),
});
await instantly ("/inbox-placement-tests" , {
method : "POST" ,
body : JSON .stringify ({
name : "Pre-launch deliverability test" ,
email_subject : "Test Subject" ,
email_body : "Test body content" ,
type : 1 ,
}),
});
await instantly ("/block-lists-entries/bulk-create" , {
method : "POST" ,
body : JSON .stringify ({
entries : ["competitor.com" , "internal.com" ],
}),
});
Migration Checklist
Error Handling Error Cause Solution 401 on v2Using v1 key format Generate new v2 Bearer token 404 on v2 pathUsing v1 endpoint path Check migration table above 422 on lead addNew validation rules in v2 Add required fields per v2 schema Missing pagination data Using skip instead of starting_after Convert to cursor pagination
Resources
Next Steps For CI/CD integration, see instantly-ci-integration.