Clay
Send leads from a Clay table into a Tryzen campaign with two HTTP API columns, and bring replies back into Clay.
Clay finds and enriches people; Tryzen contacts them on LinkedIn. This guide connects the two with Clay's HTTP API column and your Tryzen API key. Each row of your table becomes a lead in a campaign, with its name, company and your Clay-written lines as message variables.
Why a template and not a Clay app. A native "Tryzen" action inside Clay needs Clay to list Tryzen as a partner (Clay builds those with the vendor). Until then, the HTTP API column does the same job: same fields, same sender choice, same result counts.
What you get
- tryzen-clay-leads.csv: the table template. The input columns this guide uses, with two example rows; import it into Clay as a new table.
- The column settings: two HTTP API columns, ready to paste. One saves the lead with its fields, one adds it to the campaign.
Clay has no public file format for exporting or importing column settings, so the template is the CSV (it gives you the columns) plus the settings below (you paste them into two HTTP API columns once; Clay's Save as template in the HTTP API panel keeps them for your next table).
| CSV column | Becomes in Tryzen | Required |
|---|---|---|
LinkedIn URL | the lead (https://www.linkedin.com/in/…) | yes |
First Name, Last Name | {FIRST_NAME}, {LAST_NAME} in messages | no |
Company, Job Title | {COMPANY}, {POSITION} | no |
Email | the lead's email | no |
Icebreaker | the custom field icebreaker, used as {icebreaker} | no |
Tryzen Sender ID | pins the lead to one sender; empty spreads leads across the campaign's senders | no |
Rename or add columns freely: only the references inside the request bodies have to match.
Before you start
- A launched campaign. Leads can join a campaign that is In progress, Paused or Finished
(not a draft). A campaign can launch with an empty list (you get a warning, not an error), so
launch it first and let Clay fill it. Copy its id from the address bar:
/campaigns/<campaignId>. - A separate list for Clay leads, for example "From Clay". Column 1 saves each lead with its
fields into this list. Don't use the campaign's own lead list here: a lead already in that list
counts as "already in the campaign" and column 2 would skip it. Copy the list's id from
/lists/<listId>. - An API key (API page → Create key, type Public API) with
leads: manageandcampaigns: manage. It starts withnrk_and is shown once. - Sender ids, only if you pin senders:
/senders/<senderId>in the address bar, orGET /v1/senders. A pinned sender must be one of the campaign's senders.
Set it up
1. The table and the key
-
Download the CSV template and import it into Clay as a new table (or add the same columns to a table you already have). Delete the two example rows.
-
Add a column, choose HTTP API, open Select header account → + Add account and add one header under API Request Headers:
Key Value x-api-keyyour nrk_…keyName the account "Tryzen" and save. Clay stores it encrypted for the workspace (Settings → Connections), so the key is never in plain sight in the table, and both columns below use it.
2. Column 1: save the lead
Name the column Tryzen: save lead.
- Method:
POST - URL:
https://<your Tryzen API host>/v1/lists/<listId>/leads(the "From Clay" list) - Header account: Tryzen
- Body:
{
"leads": [
{
"profileUrl": "/LinkedIn URL",
"firstName": "/First Name",
"lastName": "/Last Name",
"companyName": "/Company",
"position": "/Job Title",
"email": "/Email",
"customFields": { "icebreaker": "/Icebreaker" }
}
],
"updateExisting": true
}Each /Column Name is a Clay column reference: type / in the body and pick the column, keeping
the quotes around it (Clay requires quotes around text references). Pasted text may stay plain
text; re-insert each reference with / if it does.
- Remove empty fields from request: on, so an empty cell is left out instead of sent as
"". - Rate limit: Request limit
2, Duration1000ms. - Field paths to return:
added,alreadyInList,failed.
updateExisting: true lets the newest Clay data overwrite a lead Tryzen already knows (names,
position, company, location). Custom fields and the email are always written. Custom field names
use letters, numbers and _ only (icebreaker, pain_point), can't reuse a default name
(first_name, company, …) and go up to 100 per lead.
3. Column 2: add the lead to the campaign
Name the column Tryzen: add to campaign.
- Method:
POST - URL:
https://<your Tryzen API host>/v1/campaigns/<campaignId>/leads - Header account: Tryzen
- Body:
{
"leads": [{ "lead": { "profileUrl": "/LinkedIn URL" } }],
"resumeFinished": true
}- Run condition: only run when Tryzen: save lead has a result, so Clay runs this column after column 1 and the lead already carries its fields when it joins the campaign.
- Rate limit: Request limit
2, Duration1000ms. - Field paths to return:
added,alreadyInCampaign,failed,status.
The campaign finds the lead column 1 saved (same LinkedIn URL) and enrolls it like any lead:
sender rotation, the blacklist, "contacted in another campaign" and one entry per person all
apply. resumeFinished: true turns a finished campaign back on when a new lead arrives; add
"resumePaused": true to resume a paused one too, or leave both out to keep the campaign as it
is.
4. Optional: pin a sender
To send a row from one particular LinkedIn account, put the sender's id in Tryzen Sender ID and
use this body instead:
{
"leads": [{ "lead": { "profileUrl": "/LinkedIn URL" }, "senderId": "/Tryzen Sender ID" }],
"resumeFinished": true
}A sender id must be a real id, never empty. If only some rows have one, make two campaign columns:
this one with the run condition "Tryzen Sender ID is not empty", the one from step 3 with
"Tryzen Sender ID is empty".
5. Test one row, then run
Use Test on one row for each column, check the lead in Tryzen (Lists → From Clay, then the campaign's Leads tab), then run the columns on the whole table.
Reading the results
A request succeeds (200) even when one lead in it fails; the counts tell you what happened:
| Column 2 says | Meaning |
|---|---|
added: 1 | The lead joined the campaign; it starts on the campaign's next run |
alreadyInCampaign: 1 | It was already in the campaign or its list; nothing changed (safe to re-run) |
failed: 1 | See items[0].code in the cell: target_invalid (not a LinkedIn profile URL), lead_not_found, sender_not_in_campaign |
status | The campaign's status after the call (starting when it was resumed) |
Errors for the whole request come back as { "ok": false, "error": { "code", "message" } }:
| Status and code | Fix |
|---|---|
401 api_key_invalid, api_key_revoked | The key is wrong or revoked: edit the "Tryzen" header account |
403 forbidden | The key lacks leads: manage or campaigns: manage |
404 list_not_found, 404 campaign_not_found | Check the id in the URL |
409 campaign_not_accepting_leads | The campaign is a draft (or canceled): launch it |
409 campaign_ended | A finished campaign whose end date has passed: extend its end date |
409 campaign_list_busy, 409 list_busy | An import or another add is filling the list; run the row again in a minute |
429 rate_limited | Over the key's 300 requests a minute: lower the Request limit |
More in Errors.
Things to know
- LinkedIn URLs must be full profile URLs (
https://www.linkedin.com/in/jane-doe). Column 2 refuseslinkedin.com/in/…withouthttps://and Sales Navigator links (target_invalid). If your source gives bare URLs, add a Clay formula column that addshttps://www.and reference it instead. - Re-running is safe. A lead already in the list or the campaign is reported, not duplicated.
- Pace. Two columns at 2 requests a second is at most 240 calls a minute, under the key's limit of 300. LinkedIn pacing is separate: leads join at once, and Tryzen contacts them inside each sender's hours and daily limits (why).
- Campaigns are made in Tryzen. Clay adds leads to a campaign; it doesn't create one.
- One column instead of two. If you don't need each row's result in Clay, a single HTTP API column posting the row to a lead catcher URL saves the lead into a list and adds it to the campaign; no API key in Clay, and the catcher shows what became of each row.
Bring results back into Clay
To see replies or accepted invites in Clay, point a webhook at a Clay table:
- In Clay, create a table from a Webhook source and copy its URL. If you turn on its auth token, copy that too.
- Create a Tryzen webhook for the event you want, with the Clay URL as the target, and the token as a static header:
curl -s -X POST "$TRYZEN_API/v1/webhooks" \
-H "x-api-key: $TRYZEN_KEY" -H "content-type: application/json" \
-d '{
"name": "Replies to Clay",
"url": "<your Clay webhook URL>",
"event": "every_message_reply_received",
"campaignIds": ["<campaignId>"],
"headers": [{ "name": "x-clay-webhook-auth", "value": "<Clay token>" }]
}'Each delivery becomes a row with lead.profileUrl, lead.email, campaign.name, message.text
and the rest of the payload; match it to your source table
on lead.profileUrl. Static header values are visible on the webhook's page in Tryzen, so use a
token you only use here. A Clay webhook source accepts a fixed number of submissions over its life
(50,000 on most plans), so pick narrow events (message_reply_received,
connection_request_accepted) rather than every message sent.
More Clay recipes are in the template gallery.