Leads
Change a lead
/leads/{leadId}Changes how a person is named and what Salesteam knows about them, with the same rules as the app: first and last name ({{first_name}}), the short company name ({{company_short}}), company, job title, email, custom fields, and tags to add or take off. Only the fields you send change; list a field in clear to empty it. Returns the lead.
Try itSend a real request with your API key
Path
leadIdstringRequiredThe lead.
Headers
Idempotency-KeystringAny unique value up to 255 characters, like a UUID. The request runs once; repeats within 24 hours get the first answer, with Idempotent-Replayed: true. Up to 255 characters.
Body
firstNamestring or nullWhat {{first_name}} says. It can’t be emptied. Up to 100 characters.
lastNamestring or nullUp to 100 characters.
companystring or nullA new company resets companyShort to the automatic one, unless you send companyShort too. Up to 200 characters.
companyShortstring or nullThe short company name {{company_short}} and {{company_name}} use, like “Acme” for “Acme Holdings, Inc.”. Clear it to go back to the automatic one. Up to 100 characters.
titlestring or nullTheir job title. Up to 200 characters.
emailstring · email or nullThe email Salesteam uses for them from now on. Up to 254 characters.
customFieldsobject or nullValues for the workspace's custom fields, by field key or name (
service_wordorService word; see GET /custom-fields). A name the workspace doesn't have yet becomes a new field: a number makes a Number field, a list a Multi-select, anything else Text. Values are checked against the field's type: a URL needs a web address, a Number a number, a Date a date (saved as YYYY-MM-DD), and a choice that isn't an option yet is added. null removes a value; an empty string or an empty list leaves it as it is. Up to 50 per lead.tagsobject or nullTags to add (a new name becomes a workspace tag) and tags to take off, by name.
Inside it
addarray of string or nullTag names (or IDs); one name can be a string. Up to 20.
removearray of string or nullTag names (or IDs); one name can be a string. Up to 20.
cleararray of string or nullFields to empty: lastName, company, companyShort (back to the automatic one), title or email. A cleared company or title shows what LinkedIn says, if anything.
Answer
200 OK The lead, changed.
dataLeadRequiredInside it
idstringRequiredfirstNamestringRequiredlastNamestringRequiredfullNamestringRequiredtitlestringRequiredcompanystringRequiredcompanyShortstringRequiredWhat {{company_short}} (and {{company_name}}) say for this lead in messages: the short name set for them, or the company name cleaned up (no Inc., no tagline).
companyShortSetbooleanRequiredA short company name was set for this lead; false means the automatic one.
locationstringRequiredindustrystringRequiredlinkedinUrlstringRequiredemailstring or nullRequiredA found email, when it is usable.
emailStatusstring or nullRequiredOne of
deliverable,catch_all,unknown.statusstringRequiredOne of
new,queued,contacted,connected,replied,suppressed.stagestringRequiredWhere the person is, as the Leads table’s Stage column says it: Blacklisted or Do not contact (suppressed) first, then an outcome you recorded (interested, qualified, booked, attended, won, no_show, lost), then Interested or Not interested from tags and AI reply tags, else the automatic status (new, queued, contacted, connected, replied). One of
new,queued,contacted,connected,replied,interested,qualified,booked,attended,won,not_interested,no_show,lost,suppressed,blacklisted.tagsarray of stringRequiredcustomFieldsobjectRequiredThe lead's custom field values by field key: text, numbers, dates as YYYY-MM-DD, web addresses, and lists for Multi-select fields.
listsarray of objectRequiredEach item
idstringRequiredThe list's ID.
namestringRequiredThe list's name.
fromPostobject or nullRequiredThe LinkedIn post this person liked or commented on when they were saved from it (Posts › Engagers), kept beside how they were first added. Null when they weren't saved from a post.
Inside it
postUrlstringRequiredtopicstring or nullRequiredWhat the post was about, in the workspace's words: what {{post_topic}} says in messages.
interactionstringRequiredOne of
like,comment.commentstring or nullRequiredTheir comment, up to 300 characters.
yourPostbooleanRequiredThe post is one of the workspace's own.
engagedAtstring · date-timeRequiredsavedAtstring · date-timeRequired
createdAtstring · date-timeRequiredupdatedAtstring · date-timeRequiredThe last time anything about this person changed: their details, lists or tags, an email found, outreach or a reply. What updatedSince filters on.
campaignsarray of LeadCampaignRequiredEach item
campaignobjectRequiredInside it
idstringRequirednamestringRequiredstatusstringRequireddraft: not launched. active: running. paused: stopped by the owner. completed: finished. One of
draft,active,paused,completed.
statusstringRequiredWhere the person is in a campaign. One of
active,waiting_for_acceptance,retrying,paused,needs_review,replied,suppressed,finished,stopped.stepintegerRequiredThe step they are on, from 1.
stepsintegerRequiredsenderobject or nullRequiredThe LinkedIn account reaching out.
Inside it
idstringnamestring
connectionRequestSentAtstring · date-time or nullRequiredacceptedAtstring · date-time or nullRequiredlastContactedAtstring · date-time or nullRequiredmessagesSentintegerRequiredrepliedAtstring · date-time or nullRequiredfinishedAtstring · date-time or nullRequirednextStepAtstring · date-time or nullRequiredWhen the next step is due, while active.
pausedReasonstring or nullRequired
Errors
- 400 Bad request
invalid_requestinvalid_jsonduplicate_in_request - 401 Unauthorized
unauthorized - 404 Not found
not_foundnot_in_campaign - 409 Conflict
conflictidempotency_in_progressworkspace_busycampaign_finishedcampaign_without_listtag_limitlead_has_historycampaign_not_launchedcampaign_cannot_resumeambiguous_email - 413 Too large
too_large - 415 Wrong content type
unsupported_media_type - 422 Can’t process
idempotency_key_reused - 429 Too many requests
rate_limited - 500 Server error
server_error
Every error has the same shape. See Errors.