---
title: Webhook payload reference
description: The URL, headers, fields and responses for sending leads to Distrosauce from Clay or any tool that can send a webhook.
canonical: https://distrosauce.com/docs/reference/webhook-payload
last_updated: 2026-11-15
---

# Webhook payload reference

This page lists exactly what to send to your workspace's webhook and what it answers. Clay and any other tool use the same fields.

## Endpoints

Your workspace has two webhooks. The full URLs are on **Settings > Webhooks**.

```text
POST https://distrosauce.com/api/webhooks/clay/{your-workspace-slug}
POST https://distrosauce.com/api/webhooks/generic/{your-workspace-slug}
```

Use the Clay one from Clay and the generic one from anything else. Each has its own secret, on **Settings > Integrations** under **Webhook Secrets**.

## Headers

```text
Content-Type: application/json
x-webhook-secret: {your webhook secret}
```

## Body

Send one person per request. An example, in which the person, the company and every value are made up:

```json
{
  "first_name": "Pat",
  "last_name": "Placeholder",
  "email": "pat@example.com",
  "linkedin_url": "https://www.linkedin.com/in/example-profile",
  "title": "Head of Growth",
  "company_name": "Definitely Not Real, Inc.",
  "company_domain": "example.com",
  "signal_type": "your_thesis_slug",
  "signal_details": { "details": "Posted a role for a growth marketer" },
  "employee_count": 120,
  "industry": "Software"
}
```

## Fields

| Field | Required | Notes |
|---|---|---|
| `first_name` | Yes | |
| `last_name` | Yes | |
| `company_name` | Yes | |
| `signal_type` | Yes | The slug of one of your active targeting theses. It must match exactly. |
| `email` | One of `email` or `linkedin_url` | A blank value or `none` counts as no email. |
| `linkedin_url` | One of `email` or `linkedin_url` | Needed for LinkedIn notes. |
| `title` | No | Used to match a persona. |
| `company_domain` | No | |
| `employee_count` | No | A number. |
| `revenue` | No | |
| `industry` | No | |
| `tech_stack` | No | Words for the tools the company uses, for example `CRM, data warehouse`. |
| `company_description` | No | |
| `signal_details` | No | An object or a string. A string is stored as `{ "details": "..." }`. |

Other fields are kept with the lead as sent and are not used for writing.

## Responses

| Status | When | Body |
|---|---|---|
| 200 | The request was accepted | `success: true` and `data` with `signal_id`, `lead_id`, `action`, `composite_score` and `message` |
| 400 | A field is missing or wrong (the three messages are below) | `success: false` and `error` |
| 401 | The address or the secret is wrong or missing | `{ "success": false, "error": "Invalid webhook URL or secret" }` |
| 500 | The body is not valid JSON, or something failed on our side | `success: false` and `error` |
| 503 | Something failed on our side; send the request again | `{ "success": false, "error": "Temporarily unavailable, try again" }` |

### The three 400 messages

When a required name or company field, or `signal_type`, is missing:

```text
Missing required fields: first_name, last_name, company_name, signal_type
```

When there is neither an email nor a LinkedIn URL:

```text
At least one contact method required: email or linkedin_url
```

When `signal_type` is not the slug of an active thesis, the message repeats the value you sent and lists your workspace's active thesis slugs:

```text
Invalid signal_type "{the value you sent}". Valid options: {your active thesis slugs, separated by commas}
```

### What a 200 means

A 200 does not always mean a new lead. `action` says what happened: a new lead, a signal added to an existing lead, or a signal kept until there are more about the same person. Research and writing run after the response.
