Skip to main content
POST
Add lead to campaign
Adds a single lead to a lead source (campaign). You can add a lead in three ways:
  • By username — Pass a Twitter username; the system looks up the profile. Consumes Lead Credits.
  • By profile URL — Pass an x.com profile URL (e.g. https://x.com/username); the username is extracted and the profile is looked up. Consumes Lead Credits.
  • By JSON — Pass a full Twitter user object. Does not consume Lead Credits.
The username and profile_url import options use Lead Credits. Use json when you already have the user data (e.g., via the enrichment API) to avoid spending Lead Credits.

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

id
string
required

Lead Source ID (campaign ID)

Body

application/json

Request body for adding a lead. Use one of: username (consumes Lead Credits), profile_url (consumes Lead Credits), or json (no Lead Credits).

importType
enum<string>
required

Import by Twitter username. Consumes Lead Credits.

Available options:
username
username
string
required

Twitter username (without @)

customVariables
object

Optional key-value pairs for personalization

Response

Lead added successfully

status
string
Example:

"success"

message
string
Example:

"Lead added successfully"

lead
any

Lead data (for username/profile_url imports)

data
any

Response data (for json import)