Guide: Clay

Enrich in Clay, push the good ones into a Sprootal campaign, and get replies back — without leaving a LinkedIn account exposed.

Clay

Clay is good at deciding who is worth reaching. Sprootal is what actually touches them on LinkedIn and keeps the account safe. The join between them is two HTTP calls.

Clay table  →  create contact  →  enrol in campaign  →  Sprootal runs it
                                                             ↓
                            Clay webhook  ←  they replied

2. Build the campaign first

Campaigns are built once, in Sprootal — Clay enrols into an existing one. Copy its id from the URL.

Get the ids you will need:

curl -s "https://sprootal.com/api/v1/automations" \
  -H "Authorization: Bearer $KEY"

Also grab a project or list id from GET /api/v1/projects or GET /api/v1/lists — every contact needs a home to be created into.


3. Push a row from Clay

Add an HTTP API column in Clay.

Create the contact — POST https://sprootal.com/api/v1/contacts

{
  "firstName": "{{First Name}}",
  "lastName": "{{Last Name}}",
  "linkedin": "{{LinkedIn Profile}}",
  "title": "{{Title}}",
  "projectId": "{{your project id}}"
}

Headers: Authorization: Bearer YOUR_API_KEY, Content-Type: application/json.

The response carries data.id. Pushing the same LinkedIn URL twice updates that contact instead of creating a duplicate — and brings it back if someone had deleted it — so a re-run of the table is safe.

Enrol them — a second HTTP column, POST /api/v1/automations/{automationId}/enroll

{ "contactIds": ["{{contact id from the previous column}}"] }

Gate this column on your qualification condition. Everything that reaches it gets touched by a real LinkedIn account, so it is the row where "maybe" should mean "no".


4. Get replies back into Clay

Point a webhook at a Clay-facing endpoint:

curl -s -X POST "https://sprootal.com/api/v1/webhooks" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "clay",
    "url": "https://your-endpoint.example.com/replies",
    "events": ["conversation.new_message", "connection.accepted"]
  }'

Save the signingSecret — it is returned once — and verify it against the X-LeadGen-Signature header (t=<timestamp>,v1=<hmac>) on every delivery. Send yourself a test through the real delivery path before trusting it:

curl -s -X POST "https://sprootal.com/api/v1/webhooks/$ID/test" \
  -H "Authorization: Bearer $KEY"

An endpoint that fails 20 deliveries in a row gets disabled automatically; if Clay's webhook URL ever changes, update it here or replies stop arriving silently.


5. What Clay should not do

Do not use Clay to pace sending. Sprootal already enforces one action at a time, a two-minute gap and per-account daily limits — see [Account Safety](/help/account-safety). Enrolling five hundred rows does not send five hundred invites today; every one is accepted and queued behind those limits, and `estimated_send_at` on the enrol response tells you roughly when each will actually go out.

If you need more throughput, add a sender seat. Sending faster from one account is not a setting, it is a restriction waiting to happen.


Where enrichment belongs

Clay's enrichment is better than ours and should stay in Clay. Push the fields you want visible in the Inbox onto the contact when you create it; leave the rest in the Clay table where you can iterate on it.


Two things that will bite you

**Enrolling or sending never happens instantly.** Every send is accepted and queued; it goes out when the sender account's pacing allows it, not the moment your HTTP column fires. Don't build a retry around "it hasn't sent yet" — check `GET /api/v1/messages/queue` instead.

A draft can expire before anyone reads it. If the conversation moves on, the draft is swept away and you get draft.superseded. Handle it by drafting again against the new state, never by re-posting the old text.