SmartLead icon

SmartLead

Interact with SmartLead API (campaigns, leads, inbox, analytics, delivery, and webhooks)

Actions144

Campaign → Create

AI-generated

Summary

Create a new campaign in SmartLead

Inputs

  • requestBody — JSON payload for the campaign creation request.
  • requestOptions — Options for request handling such as batching, proxy, timeout, and SSL verification.
  • allowUnauthorizedCerts — Whether to ignore SSL certificate errors when communicating with the API.
  • proxy — HTTP proxy URL to tunnel requests through, including optional authentication.
  • timeout — Maximum time in milliseconds to wait for a response before aborting the request.

Output shape

a campaign resource representing the newly created campaign

Contains the created campaign's ID and details; may include additional metadata.

Examples

Example 1: Create a simple campaign

operation=Create, resource=Campaign, requestBody={"name":"Summer Sale"}

Example 2: Create a campaign with batching

operation=Create, resource=Campaign, requestBody={"name":"Q4 Promo"}, requestOptions={{batch:{batchSize:100}}}

Example 3: Create a campaign using proxy and ignore SSL

operation=Create, resource=Campaign, requestBody={"name":"Winter Deal"}, proxy="http://myproxy:3128", allowUnauthorizedCerts=true

Links

Discussion