company logo

Help center

Go to Smartlead.ai
API Documentation
All collectionsAPI, Integrations, and Webhooks How to get started with the Smartlead API

How to get started with the Smartlead API

Create a Smartlead API key, make your first authenticated request with the api_key parameter, and stay within the API rate limits to avoid 429 errors.

The Smartlead API lets you manage campaigns, leads and email accounts from your own code or tools. Every request is authenticated with an API key that you create in Settings.

Before you start

  • API access is available on the Pro plan and higher. On Base and Popular plans, API Key Management is hidden.

  • You need to be the account owner, or a team member with admin access.

Step 1: Create or copy your API key

  1. Click your avatar, then go to Settings → API Key Management.

  2. Open Admin API Keys.

  3. Copy an active key with the copy icon. If you have no key yet, click + Create Admin Key, enter a Key Name and click Create.

Treat the key like a password. Don't post it in chat, tickets or screenshots.

Step 2: Make your first request

All endpoints use the base URL https://server.smartlead.ai/api/v1. Add your key to every request as the api_key query parameter:

GET https://server.smartlead.ai/api/v1/campaigns/?api_key=<your-api-key>

The key must be sent in the URL. A key sent in a request header is not accepted.

Step 3: Find the endpoint you need

Every endpoint, with its parameters and example responses, is listed in the Smartlead API documentation.

Good to know

  • Admin keys share one rate limit. All admin keys on your account draw from one per-minute limit, 200 requests per minute by default. Creating more keys doesn't add capacity. Contact support if you need a higher limit.

  • Each client API key has its own limit, 60 requests per minute by default.

  • Some endpoints also have their own per-minute limit, on top of your account limit.

  • Going over a limit returns HTTP 429. Wait briefly and retry with a back-off.

  • You can add up to 1,000 leads per add-leads call, with up to 200 custom fields per lead.

  • You can create up to 25 admin API keys per account.

If something goes wrong

  • "API key is required." The key was sent in a header, or the path isn't under /api/v1/. Send it as ?api_key= on a /api/v1/ URL.

  • "API Key access denied". Your plan doesn't include API access. The account owner can upgrade in Settings → Subscription.

  • You can't see API Key Management. Your plan is below Pro, or you're a team member without admin access. The owner can make you an admin in Settings → Team Members.

  • HTTP 429. You've hit a rate limit. Space your calls out and check which tools share your admin keys.

FAQ

Why am I getting a 429 "rate limit exceeded" error?

You sent more requests in one minute than your limit allows. The error text tells you which limit you hit:

  • Account rate limit exceeded. You have exceeded the 200 requests in 1 min limit. This is your account limit. Every admin API key on your account, and every tool using those keys, shares it.

  • You have exceeded the 60 requests in 1 min limit! This is the limit on a client API key.

  • You have exceeded the 10 requests in 60 sec limit for this endpoint! This is the limit for that one endpoint.

The numbers in your message are your actual limits. To fix it, pause or reschedule other tools that use your keys at the same time, add a short pause between calls, and retry a failed call after a few seconds. A call that returns 429 is not processed. If you still need more calls per minute, contact support with the endpoints you call, how many calls per minute you need, and the UTC time of the errors.

Which plans include webhooks?

Webhooks are not available on the Base plan. On higher plans, set them up from the Webhook page in Settings. If you don't see that page, your plan doesn't include webhooks.

Still stuck? Contact support from the chat in your Smartlead dashboard.

Related articles

  • Smartlead API documentation

  • How Multiple Admin API Keys Work in Smartlead

  • How Client Level API Keys Work In Smartlead?

Did this answer your question?
😞
😐
😁