{"uid":"cap_OyUm7ZKFjJ14-O_z7X3gV","slug":"411data-lead-session-synthesize-patch-350670ec","name":"411data Lead Session Synthesize-Patch","description":"B2B lead enrichment API: find business emails, phone numbers, and contact data for lead generation. Bill-on-match pricing, free trial, agent-native REST + enrich agent.","url":"https://411data.io/api/v1/enrich/lead-session/synthesize-patch","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lead":{"type":"object","default":{"zip":"16101","city":"New Castle","state":"PA","street":"30 N Beaver St","company":"Haney Furniture Co","number1":"7246547732","contact_id":81555753},"description":"The same bound CRM lead passed to enrich/lead-session. Keep contact_id stable; never swap in a legal entity name discovered mid-session."},"prompts":{"type":"array","items":{"type":"string"},"description":"Follow-up instructions to focus this pass."},"progress_key":{"type":"string","maxLength":96,"description":"Opaque key for streaming progress reads; cleared when the op finishes."},"prior_backfill":{"type":"object","description":"lead_enrichment_v1 graph to resynthesize from. Required here — this op runs no vendor hunts, so there is nothing to rebuild from."},"research_model":{"type":"string","maxLength":64,"description":"Override the research model for this pass."},"chat_session_id":{"type":"string","maxLength":64,"minLength":8,"description":"chat_session_id of the completed session whose graph is being patched."},"refresh_summary":{"type":"boolean","default":true},"extra_directives":{"type":"string","maxLength":32000,"description":"Free-form synthesis directives appended to the prompt."},"merge_person_hunt":{"type":"boolean","default":false}}},"responseSchema":{"type":"json","example":{"billed":true,"status":"complete","matched":true,"persist":{"leb_id":42,"applied":true,"contact_id":81555753,"idempotent_replay":false},"backfill":{"phones":[{"label":"main","score":91,"number":"(724) 654-7732"}],"contacts":[{"name":"James W Cole Sr","title":"Owner"}],"schema_version":"1.0"},"coverage":{"must_phones_hit":1,"must_phones_total":1},"endpoint":"enrich/lead-session/synthesize-patch","spent_usd":0.09,"wall_time_ms":18420,"summary_markdown":"# Haney Furniture Co\nMain line [(724) 654-7732](https://example.com/contact) — owner **James W Cole Sr**"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jqwr6p3HwBPieKxt5-h15","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Re-synthesizes and patches a completed B2B lead enrichment session graph without running new vendor lookups, updating contact data and generating a refreshed summary from prior backfill data.","exampleAgentPrompt":"Take the completed enrichment session (chat_session_id 'sess_abc12345') for the lead Haney Furniture Co at 30 N Beaver St, New Castle PA 16101 (contact_id 81555753, phone 7246547732) and re-synthesize the result with these extra directives: 'highlight the owner name prominently and refresh the summary markdown'.","exampleUseCases":[{"title":"Refresh summary after manual review","prompt":"I just reviewed the enrichment session 'sess_xyz99887' for Haney Furniture Co (contact_id 81555753) and want to re-synthesize the result with updated directives — focus on the owner's title and regenerate the markdown summary without re-querying any data sources."},{"title":"Patch lead graph with follow-up instructions","prompt":"For the completed lead session 'sess_kl234567' on contact_id 55320011 at Acme Plumbing Supply, apply these follow-up prompts: 'extract the billing contact if listed' and 'flag any secondary phone numbers' — patch the existing backfill graph and persist the result."},{"title":"Merge person hunt into existing session","prompt":"Take the finished enrichment session 'sess_mn445566' for contact_id 72813400 at Riverside Auto Parts and re-run synthesis with merge_person_hunt enabled, so the owner's personal contact details get folded into the final enriched record."}],"resultDescription":"Returns a JSON object with billing confirmation, enrichment status, persisted lead record details (leb_id, contact_id), enriched backfill data (phones with confidence scores, contact names and titles), schema version, coverage metrics, spend in USD, wall time in milliseconds, and a markdown-formatted summary of the lead.","failureModes":["Missing or invalid chat_session_id causes the patch to fail with no session to reference","Missing prior_backfill causes the operation to fail since no vendor hunts are run to rebuild from","Invalid or mismatched contact_id between lead and session results in a rejection","Synthesis model override referencing an unavailable model returns an error","If no match is found, matched=false is returned and billing may not be applied","Oversized extra_directives (over 32,000 chars) will be rejected","Stale or already-cleared progress_key may result in progress tracking loss"],"whenToPreferThis":"Use this endpoint when you have already completed a lead enrichment session and want to re-synthesize or patch the result graph with new directives, summary refresh, or person hunt merging — without paying for new vendor data lookups. Prefer this over the full agentic session endpoint when the underlying data is already gathered and only the synthesis layer needs to be re-run or adjusted. Ideal for post-review correction passes, prompt-guided refinement of existing enrichment output, and persisting finalized records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T04:07:12.842Z","isFirstParty":false}