- Developers
- Get started
Quickstart
Five minutes from zero to reading your leads, adding a person to a campaign and hearing about replies.
#1. Create an API key
In the RevFirst app, open Integrations → API & webhooks, name the key (for example “CRM sync”) and press Create key. Copy it straight away: it starts with rf_live_ and is shown only once. Keep it in an environment variable, never in code.
export REVFIRST_API_KEY="rf_live_…"#2. Make your first call
List the five newest people RevFirst found for you:
curl "https://app.revfirst.co/api/v1/people?limit=5" \
-H "Authorization: Bearer $REVFIRST_API_KEY"const res = await fetch("https://app.revfirst.co/api/v1/people?limit=5", {
headers: { Authorization: `Bearer ${process.env.REVFIRST_API_KEY}` },
});
const { data, next_cursor } = await res.json();import os, requests
res = requests.get(
"https://app.revfirst.co/api/v1/people",
params={"limit": 5},
headers={"Authorization": f"Bearer {os.environ['REVFIRST_API_KEY']}"},
timeout=30,
)
res.raise_for_status()
people = res.json()["data"]Each person comes with the signal that found them and the reason to reach out now:
{
"data": [
{
"id": "3f2a8c1e-6b0d-4c47-9a51-2f1f0c9d7e11",
"name": "Jane Doe",
"title": "Head of Sales",
"company": "Acme",
"signal": "hiring",
"reason": "Hiring 3 SDRs this month",
"campaign_id": "9b1c4e2a-0f3d-4a8b-b6c5-7d2e1f0a9c33",
"status": "active",
"found_at": "2026-11-24T09:30:00.000Z"
}
],
"next_cursor": "WyIyMDI2LTExLTI0…"
}Pass next_cursor back as cursor to get the next page. See Pagination.
#3. Add a person to a campaign
Get a campaign id from GET /campaigns, then add someone from your own systems. RevFirst contacts them on the campaign’s schedule.
curl -X POST "https://app.revfirst.co/api/v1/campaigns/$CAMPAIGN_ID/people" \
-H "Authorization: Bearer $REVFIRST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe",
"linkedin_url": "https://www.linkedin.com/in/example-jane-doe",
"email": "jane@acme.com",
"reason": "Asked about pricing at our webinar"
}'const res = await fetch(`https://app.revfirst.co/api/v1/campaigns/${campaignId}/people`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.REVFIRST_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Jane Doe",
linkedin_url: "https://www.linkedin.com/in/example-jane-doe",
email: "jane@acme.com",
reason: "Asked about pricing at our webinar",
}),
});
if (res.status === 409) console.log((await res.json()).error.message);res = requests.post(
f"https://app.revfirst.co/api/v1/campaigns/{campaign_id}/people",
headers={"Authorization": f"Bearer {os.environ['REVFIRST_API_KEY']}"},
json={
"name": "Jane Doe",
"linkedin_url": "https://www.linkedin.com/in/example-jane-doe",
"email": "jane@acme.com",
"reason": "Asked about pricing at our webinar",
},
timeout=30,
)
if res.status_code == 409:
print(res.json()["error"]["message"])People on your do-not-contact list, or already in another campaign, are refused with 409 and a clear code. See Errors.
#4. Listen for replies
Rather than polling /replies, add a webhook: in Integrations → API & webhooks, paste your https address, tick lead.interested, and copy the signing secret. Press Send a test to see a sample event arrive. Then verify each signature before you trust it.
#Next steps
Last updated 25 November 2026 · Questions? Write to satvik@revfirst.co