smartlead-api

Reference Smartlead API endpoints for campaigns, leads, email accounts, analytics, and inbox operations.

Updated May 28, 2025
One-click install
npx skills add https://github.com/meloShaya/insteltech --skill smartlead-api-meloshaya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smartlead-api
Source: https://github.com/meloShaya/insteltech/tree/main/crm/library/skills/smartlead-api
Command: npx skills add https://github.com/meloShaya/insteltech --skill smartlead-api-meloshaya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the Smartlead API requires knowing exact endpoint paths, authentication patterns, rate limits, and request body shapes, which are easy to get wrong without a consolidated reference. ## Core Features & Use Cases - Endpoint Reference: Documents all commonly used Smartlead endpoints for campaigns, sequences, leads, email accounts, analytics, and the master inbox, including request bodies and query parameters. - Auth and Rate Limiting Guidance: Covers query-parameter API key authentication, sub-client and custom API key patterns, and retry strategies for 429 and 5xx responses. - Use Case: When building a script that uploads leads to a Smartlead campaign with A/B/C sequence variants, consult this reference to get the exact POST body structure, batch limits of 100 leads, and schedule settings without trial and error. ## Quick Start Ask the AI to show the Smartlead API endpoint and request body for adding leads to a campaign.

Frequently Asked Questions about smartlead-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add leads to a Smartlead campaign via API?

Send a POST request to /campaigns/{id}/leads with your API key as a query parameter and a body containing a lead_list array. Each lead includes email, first_name, last_name, company_name, and optional custom_fields, batched up to 100 leads per request.

How does Smartlead API authentication work?

Smartlead uses query parameter authentication by appending ?api_key={SMARTLEAD_API_KEY} to every request against the base URL https://server.smartlead.ai/api/v1. Sub-clients add a client_id parameter, while custom API key clients use their own key directly.

What are the Smartlead API rate limits?

The standard plan allows 2,000 requests per minute and higher plans allow 3,000 per minute. Retry on 429 and 5xx responses with exponential backoff, and use concurrency limiters like p-limit or PQueue set to 8-15 for bulk operations.

How do I create A/B test variants in Smartlead sequences?

Include a seq_variants array inside each sequence object when posting to /campaigns/{id}/sequences. Each variant has a variant_label, subject, and email_body. Do not include a distribution field because Smartlead splits traffic evenly automatically.

Why is listing Smartlead email accounts slow?

The /email-accounts endpoint paginates at 100 accounts per page, so accounts with thousands of inboxes require many requests and can take over 30 seconds to fully walk. Cache the full list in memory or a local JSON file and refresh periodically.