SmartLead icon

SmartLead

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

Actions144

Campaign → Add Email Accounts

AI-generated

Summary

Add email accounts to a campaign

Inputs

  • campaignId (required) — The ID of the campaign to which the email accounts will be attached.
  • requestBody — JSON payload defining the email account(s) to add.
  • requestOptions — Options for the HTTP request, such as batching settings, proxy, SSL verification, and timeout.

Output shape

array of email account objects returned on success

The response contains the created email account details; fields like ID, status, and configuration may be included. Errors are returned in a standard error envelope.

Examples

Example 1: Add two SMTP accounts to a campaign

{"campaignId":"12345","requestBody":{"accounts":[{"type":"SMTP","host":"smtp.example.com","port":25,"username":"user","password":"pass"}]}}

Example 2: Add an OAuth account with batching enabled

{"campaignId":"67890","requestBody":{"accounts":[{"type":"OAuth","provider":"Google"}]},"requestOptions":{"batching":{"batchSize":10,"batchInterval":0}}}

Links

Discussion