> ## Documentation Index
> Fetch the complete documentation index at: https://docs.preceptai.co.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Lead Webhooks

This webhook is called when the lead search or lead enrichment is complete. The payload contains the results of the request.

If your webhook endpoint is unavailable or returns an error, we will retry the request up to 3 times with exponential backoff to ensure you receive the data.

### Webhook Payload Examples

<CodeGroup>
  ```json Successful Enrichment theme={null}
  {
    "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "name": "Q3 Lead List",
    "status": "completed",
    "results": [
      {
        "first_name": "John",
        "last_name": "Doe",
        "company_name": "Acme Corp",
        "summary": "John Doe is a Senior Software Engineer at Acme Corp with 10 years of experience...",
        "top_problems": "Scaling distributed systems, reducing latency...",
        "internal_strategic_initiatives": "Migrating to microservices, improving CI/CD...",
        "public_appearances": "Keynote speaker at TechConf 2023...",
        "enrich_email": "john.doe@example.com",
        "enrich_phone": "+1234567890",
        "custom_data": {
          "contact_id": "lead_123"
        }
      }
    ],
    "cost": {
      "credits": 22
    }
  }
  ```

  ```json Partial Success theme={null}
  {
    "enrichment_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "name": "Q4 Lead List",
    "status": "completed",
    "results": [
      {
        "first_name": "Jane",
        "last_name": "Smith",
        "company_name": "Precept AI",
        "summary": "Jane Smith leads the marketing team...",
        "top_problems": "Lead generation, brand awareness...",
        "internal_strategic_initiatives": "Launching new product line...",
        "public_appearances": "Panelist at Marketing Summit...",
        "enrich_email": "jane.smith@example.com",
        "enrich_phone": "Not Found",
        "custom_data": {
          "contact_id": "lead_123"
        }
      },
      {
        "error": "Contact not found",
        "customData": {
          "contact_id": "lead_456"
        }
      }
    ],
    "cost": {
      "credits": 12
    }
  }
  ```
</CodeGroup>
