smartlead-api

Reference Smartlead API endpoints, authentication, and rate limits for campaign and lead operations.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/Pinkycherry/newbusinessideas3 --skill smartlead-api-pinkycherry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smartlead-api
Source: https://github.com/Pinkycherry/newbusinessideas3/tree/main/.claude/skills/smartlead-api
Command: npx skills add https://github.com/Pinkycherry/newbusinessideas3 --skill smartlead-api-pinkycherry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the Smartlead API requires knowing exact endpoint paths, request body shapes, and authentication patterns, and getting any of these wrong causes failed campaign updates, lost leads, or rate-limit errors. This Skill provides a complete, accurate reference so every Smartlead operation is built correctly the first time. ## Core Features & Use Cases - Endpoint Reference: Covers campaigns, sequences with A/B/C variants, leads, email accounts, analytics, schedules, and the master inbox with exact request bodies. - Auth & Rate Limiting Guidance: Documents query-parameter API key auth, sub-client patterns, and retry strategies for 429 and 5xx responses. - Use Case: When adding leads to a campaign, use this reference to construct the correct POST body with batched lead lists of up to 100 records, including custom fields, without guessing the schema. ## Quick Start Ask the AI to create a Smartlead campaign with a three-step email sequence and A/B subject line variants using the Smartlead API reference.

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 can include email, first_name, last_name, company_name, and custom_fields, batched up to 100 leads per request.

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

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

How does Smartlead API authentication work?

All requests authenticate with an api_key query parameter, for example ?api_key={SMARTLEAD_API_KEY}. For sub-clients, pass the main key plus a client_id parameter, or use the client's own API key directly for custom key clients.

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 a concurrency limiter like p-limit with 8-15 concurrent requests for bulk operations.

How do I fetch Smartlead campaign analytics for a date range?

Call GET /campaigns/{id}/analytics-by-date with start_date and end_date in YYYY-MM-DD format to get metrics like sent_count and reply_count. For account-wide data, use /analytics/day-wise-overall-stats or /analytics/overall-stats-v2.