Hand a lead to the CRM as a company, a contact and optionally a deal.
Create (or reuse, matched by domain and email) a CRM company and contact for this lead and link them back, so converting twice never duplicates. Send create_deal true to also open a deal on the default sales board (or pipeline_id and stage_id for a specific one); creating a deal additionally needs the service.pipelines.create scope and answers 403 deal_not_allowed without it. Answers 409 no_pipeline when the workspace has no sales board yet.
https://app.softsolz.uk/api/v1/services/my-leads/leads/{id}/convertRecent Requests
Log in to see full request historyPath Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
create_dealbooleanAlso open a deal.
pipeline_idstringSales board for the deal; defaults to the default board.
stage_idstringStage for the deal; defaults to the first stage.
contactobjectOverride the contact person: { full_name, email, phone }. Defaults to the researched contact details.
dealobjectDeal details: { title, value_cents, currency, expected_close_on, owner_user_id, notes }. Title defaults to the company name.
Response
Response Body
leadobjectThe lead with its CRM links filled in.linksobjectCRM ids now linked to the lead: { company_id, contact_id, deal_id }.createdobjectWhich records were created by this call: { company, contact, deal }.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.myLeads.convertLead('<id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": { "lead": {}, "links": {}, "created": {} }}