Create a source agent
Create a new source agent (the lead finder) for the authenticated user. A list is mandatory: the agent imports the leads it sources into a list, so you must create a list first (POST /v1/list) and link it to the agent through the required listId field. If the active agent limit is reached, the agent is still created but paused. A source agent only finds leads — it does no outreach. Without a campaign agent attached to the same list, it shows up as a legacy agent in the platform. Best practice is to follow up with POST /v1/campaign using the same list as lead source, forming a Full Cycle agent (list + source agent + campaign agent) that sources and reaches out to leads automatically.
Signals (variables): the agent finds leads through its signals. variables is optional, but when sent it must hold 4 to 15 signals, and an “autopilot” agent created without it is accepted but has nothing to run. Each signal is a { "type", "value" } object, and the value format depends on the type: a quoted keyword of 1 to 3 words for SEARCH_KEYWORD ("\"cold email\""), a LinkedIn company page URL for COMPETITOR_PAGE_URL (https://www.linkedin.com/company/lemlist), a LinkedIn profile URL for INFLUENCER_PAGE_URL (https://www.linkedin.com/in/johndoe), the literal "true" for event signals (RECENTLY_CHANGED_JOB, HIRING, …), and a lowercase technology name for TECHNOLOGY (hubspot). VISITED_PROFILE and YOUR_COMPANY_FOLLOWERS also need needsUserToken: true and a linkedinSeatId. The API does not validate values: a malformed keyword, URL, or technology is saved anyway, and that signal then finds no leads or the wrong ones. The value field of the variable schema lists the exact format for every type.
Headers
Body
The signals the agent tracks to find leads. Each variable is one signal: one keyword, one LinkedIn URL, one event, or one technology. Send between 4 and 15 variables. An "autopilot" agent created without variables has no signal to run. Optional for "website-visitor" agents (the website visitor signal is added automatically) and not allowed for "lookalike" agents. Each variable needs a type and a value whose format depends on the type. See value for every type: quoted keyword, LinkedIn page URL, "true" for event signals, or lowercase technology name. Values are not validated: a malformed keyword, URL, or technology is saved anyway, and that signal then finds no leads or the wrong ones. LOOKALIKE variables are refused, and JOB_SEARCH variables are refused for now.
Response
Agent created
.png?fit=max&auto=format&n=fLzJlZyi7L0nfF9B&q=85&s=7dc539f8ea9f771a09a9750c1227ebdb)
.png?fit=max&auto=format&n=fLzJlZyi7L0nfF9B&q=85&s=e742bcbb4bd47cd295da36c48cdd6089)