DealSleek API · Finder
PreviewPromote To Lead
Convert a verified email discovery into a lead aggregate.
/api/v1/finder/dispatchHeaders
AuthorizationstringRequiredAccess token of the signed-in user, as a Bearer token. It identifies the user, their role and the workspace.
X-CQRS-ActionstringRequiredNames the command to run. Must be
PROMOTE_TO_LEADfor this endpoint.Content-TypestringRequiredAlways
application/json.X-Idempotency-KeystringOptionalA key you choose that is unique to this attempt. A command repeated with the same key is not applied a second time.
X-Correlation-IdstringOptionalYour own identifier for the request. Returned in the
x-correlation-idresponse header; generated when you leave it out.
Request body
discovery_iduuidRequiredNo description yet.
lead_iduuidRequiredEcho the freshly-created lead_id so the discovery row can carry a back-reference (stored in metadata if a column doesn't exist).
tenant_iduuidRequiredNo description yet.
storedobject or nullOptionalNo description yet.
7 child fields
emailstringRequiredNo description yet.
iduuidRequiredNo description yet.
sourceenumRequiredWhere a discovery came from. Drives confidence weighting and the "Add lead" promote flow (LinkedIn evidence > a permutation guess).
- Allowed values
- WEB
- MCP
- MX
- GITHUB
- MANUAL_ENTRY
- TRIANGULATED
- PERMUTATION
tenant_iduuidRequiredNo description yet.
verification_statusenumRequiredOutcome of an SMTP RCPT-TO probe (or its fallback path).
- Allowed values
- UNKNOWN
- VALID
- INVALID
- CATCH_ALL
- DISPOSABLE
- RISKY
- PROBABLE
versionintegerRequiredNo description yet.
linkedin_urlstring or nullOptionalNo description yet.
Response
Status 202. The command was applied. The body is the record as it stands after the command: a JSON object whose fields depend on the record.
Errors
Every error carries an HTTP status. Where it also carries a code, branch on the code, not on the message.
- 400
X-CQRS-Actionis missing or names a command this route does not accept. SendPROMOTE_TO_LEAD. - 400
DOMAIN_ROUTINGThe body is not a valid command. Check the required fields and their types. - 401The access token is missing, expired or not valid.
- 401
L1_AUTHThe caller's role is belowrepor the caller has no access to this record. - 403
L1_POLICYA business rule refused the command. The message names the rule. - 409
L1_IDEMPOTENCYA command with this idempotency key was already applied. - 409
CONFLICTThe command would duplicate a record that must be unique. - 500
L3_COMMITThe command was valid but could not be saved.