JavaScript SDK: swarmhit.leads.delete(leadId)
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/leads/string"{ "data": { "ok": true }}Resume a paused or failed lead import POST
**JavaScript SDK:** [`swarmhit.leadImports.resume(leadImportId)`](/smart-api/sdk/methods#leadImports)
Find a lead's email or phone POST
**JavaScript SDK:** [`swarmhit.leads.enrich(leadId, params?)`](/smart-api/sdk/methods#leads) Looks up the lead's work email (by default) and/or mobile phone now and returns the lead with what was found saved on it. A value the lead already has is kept, and not charged or looked up again. A hit usually answers in a couple of seconds; a miss only once every source was tried, which can take up to a minute. Charged per result found, at the Email finder or Phone finder price (Settings → Credits usage, for owners and admins); nothing for a miss. `enrichment.<kind>.status` says how each lookup ended. A lookup already running on this lead is a 409 with `code: lookup_running`.