API Reference
Add leads, create and launch campaigns, and read replies from your own tools. Everything here works today, with a key from your dashboard.
Overview
The API lives at https://by3.com/api/v1. It speaks JSON: send Content-Type: application/json with every request that has a body. Each key belongs to one workspace, so every call reads and changes that workspace only.
| You can | Endpoint |
|---|---|
| See which workspace a key belongs to | GET /me |
| List and create lead lists | GET /lists, POST /lists |
| Add leads to a list and read them back | POST /lists/:id/leads, GET /lists/:id/leads |
| List, read and create campaigns | GET /campaigns, GET /campaigns/:id, POST /campaigns |
| Launch, pause and resume campaigns | POST /campaigns/:id/launch, /pause, /resume |
| Read replies from the Unified Inbox | GET /replies |
| See your mailboxes | GET /mailboxes |
| Check whether a domain is free to register | GET /domains/check |
A machine-readable description (OpenAPI 3.1) is at https://by3.com/api/v1/openapi.json. Import it into Postman, Insomnia or a code generator. Connecting mailboxes, buying domains and replying to leads are done in the dashboard; the API doesn't do them.
Authentication
Create a key in the dashboard under Settings → API. Workspace owners and admins can create and revoke keys; other team members can see the list.
- Read only keys can call every
GETendpoint. - Read and write keys can also add leads, create lists and campaigns, and launch, pause or resume campaigns.
- The full key (
by3_live_followed by 32 letters and digits) is shown once, when you create it. BY3 keeps only a fingerprint of it, so a lost key can't be shown again: revoke it and create a new one. - A revoked key stops working at once.
Send the key in the Authorization header of every request:
curl https://by3.com/api/v1/me \
-H "Authorization: Bearer $BY3_API_KEY"Keep keys on your server
401.Rate limits
Each key can make 120 requests a minute (2 a second, with bursts of up to 120). Every response carries X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit you get 429 with a Retry-After header in seconds: wait that long, then try again.
Errors
Errors use normal HTTP status codes and always have the same body:
{
"error": {
"code": "validation_error",
"message": "steps[1].delayDays must be a whole number from 0 to 90"
}
}| Status | code | What it means |
|---|---|---|
| 400 | validation_error | A field is missing, has the wrong type, or isn't allowed. The message names the field. |
| 400 | invalid_json | The body isn't valid JSON. |
| 401 | missing_api_key | No Authorization header (a dashboard sign-in doesn't count). |
| 401 | invalid_api_key | The key doesn't exist. Check you copied all of it. |
| 401 | revoked_api_key | The key was revoked in Settings → API. |
| 403 | insufficient_scope | A read-only key tried to change something. |
| 404 | not_found | No such list or campaign in this key's workspace, or no such endpoint. |
| 409 | invalid_state | The campaign can't do that now, e.g. pausing a draft. |
| 413 | payload_too_large | The body is too big. Send fewer leads per request. |
| 422 | campaign_not_ready | Launch checks failed. The message says what to fix. |
| 429 | rate_limited | Too many requests. Wait for Retry-After seconds. |
| 502 / 503 | upstream_error, unavailable | Domain check couldn't run. Try again later. |
| 500 | server_error | Something broke on our side. Try again. |
Requests with unknown fields are refused rather than ignored, so a typo like first_name shows up straight away.
Pagination
List endpoints return { "data": [...], "nextCursor": "..." }. Pass limit (1 to 100, default 50) and, for the next page, the nextCursor you got back as cursor. nextCursor is null on the last page.
curl "https://by3.com/api/v1/lists/LIST_ID/leads?limit=100&cursor=NEXT_CURSOR" \
-H "Authorization: Bearer $BY3_API_KEY"Endpoints
In the examples, $BY3_API_KEY holds your key. Times are UTC in ISO 8601 (2026-10-11T14:00:00.000Z).
Workspace
The workspace this key belongs to, the key's name and access, and the rate limit.
curl https://by3.com/api/v1/me \
-H "Authorization: Bearer $BY3_API_KEY"{
"workspace": { "id": "a37a57ec-…", "name": "Acme Outbound", "plan": "trial", "createdAt": "2026-10-11T11:54:21.166Z" },
"apiKey": { "id": "502e217d-…", "name": "Zapier", "prefix": "SdAhKWIj", "scopes": ["read", "write"] },
"rateLimit": { "requestsPerMinute": 120 }
}Lead lists and leads
Your lead lists, newest first. source says how a list was made: csv_upload (Import CSV), api_import (Find leads) or api (this API). Takes limit and cursor.
curl https://by3.com/api/v1/lists \
-H "Authorization: Bearer $BY3_API_KEY"{
"data": [
{ "id": "01330b5e-…", "name": "SaaS founders", "description": null, "source": "api", "leadCount": 5,
"createdAt": "2026-10-11T11:54:45.623Z", "updatedAt": "2026-10-11T11:54:45.662Z" }
],
"nextCursor": null
}Creates an empty list. Then add leads to it.
| Field | Type | |
|---|---|---|
name | text, required | Up to 200 characters |
description | text | Up to 1,000 characters |
curl https://by3.com/api/v1/lists \
-H "Authorization: Bearer $BY3_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "SaaS founders"}'Answers 201 with the new list.
Adds up to 500 leads per request. Emails are matched without regard to capitals; an email already in the list, or repeated in the request, is counted as a duplicate and skipped. Leads with problems are listed in rejected with the reason; the rest are still added.
| Field | Type | |
|---|---|---|
email | text, required | A valid address |
firstName | text | If missing, the first word of fullName is used |
lastName | text | |
fullName | text | If missing, first + last name |
company | text | |
title | text | Job title |
website | text | Company website or domain; stored as the domain, e.g. acme.com |
linkedinUrl | text | |
phone | text | |
location | text | |
customFields | object | Up to 50 extra values (text, numbers or true/false), usable in emails as {{Field Name}} |
curl https://by3.com/api/v1/lists/LIST_ID/leads \
-H "Authorization: Bearer $BY3_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"leads": [
{ "email": "ada@lovelacelabs.com", "firstName": "Ada", "lastName": "Lovelace",
"company": "Lovelace Labs", "title": "CEO", "website": "https://lovelacelabs.com",
"customFields": { "Pain Point": "slow outbound" } },
{ "email": "grace@hopper.io", "fullName": "Grace Hopper", "company": "Hopper" }
]
}'{
"listId": "01330b5e-…",
"received": 2,
"created": 2,
"duplicates": 0,
"rejected": [],
"leadCount": 2
}A rejected lead looks like { "index": 3, "email": "not-an-email", "reason": "email is not a valid address" }, where index is its position in your leads list (from 0).
Leads in a list, oldest first, with total for the whole list. Takes limit and cursor. status is new, verified, contacted, replied, unsubscribed, bounced or invalid; verificationStatus is the result of the Email check on the Leads page (valid, invalid, risky, catch_all, unknown), or null before it has run.
curl "https://by3.com/api/v1/lists/LIST_ID/leads?limit=2" \
-H "Authorization: Bearer $BY3_API_KEY"{
"data": [
{ "id": "dfd87343-…", "listId": "01330b5e-…", "email": "ada@lovelacelabs.com",
"firstName": "Ada", "lastName": "Lovelace", "fullName": "Ada Lovelace",
"company": "Lovelace Labs", "website": "lovelacelabs.com", "title": "CEO",
"linkedinUrl": null, "phone": null, "location": null, "status": "new",
"verificationStatus": null, "verificationCheckedAt": null,
"customFields": { "Pain Point": "slow outbound" },
"createdAt": "2026-10-11T11:54:45.654Z" }
],
"total": 5,
"nextCursor": "WyIyMDI2LTEwLTExIDExOjU0OjQ1LjY1NDk2NiIsImE5ZGE4Y2Y3Il0"
}Campaigns
Campaigns, newest first. Filter with status (draft, running, paused, completed); takes limit and cursor. Each has its numbers in stats. Opens and clicks are only counted when tracking is on for that campaign.
curl "https://by3.com/api/v1/campaigns?status=running" \
-H "Authorization: Bearer $BY3_API_KEY"{
"data": [
{ "id": "5281de3c-…", "name": "Q4 founders", "status": "running", "listId": "01330b5e-…", "lastError": null,
"stats": { "recipients": 5, "sent": 2, "opened": 0, "clicked": 0, "replied": 1, "bounced": 0, "unsubscribed": 0 },
"createdAt": "2026-10-11T11:55:32.530Z", "updatedAt": "2026-10-11T11:56:00.324Z",
"startedAt": "2026-10-11T11:56:00.324Z", "pausedAt": null, "completedAt": null }
],
"nextCursor": null
}One campaign with everything in the list above plus its settings, its steps (with how many of each were sent), leadsByStatus (enrolled leads: active, completed, replied, bounced, unsubscribed, failed, stopped) and whether its sending hours are open now (sendingWindowOpen, nextWindowAt).
curl https://by3.com/api/v1/campaigns/CAMPAIGN_ID \
-H "Authorization: Bearer $BY3_API_KEY"Creates a draft. It doesn't send anything until you launch it, here or with Launch in the dashboard, where you can also edit it.
| Field | Type | |
|---|---|---|
name | text, required | Up to 200 characters |
listId | text | The lead list to send to (needed before launch) |
description | text | |
steps | list | Up to 20 emails, in order (below) |
settings | object | Sending settings (below); anything left out uses the default |
Each step:
| Field | Type | |
|---|---|---|
subject | text | Leave empty on a follow-up to send it as a reply in the same thread ("Re: …") |
body | text | Plain text. Use {{firstName|there}} variables and, with useSpintax, {Hi|Hello} |
delayDays | 0–90 | Days to wait after the previous email (default 3; ignored on the first) |
delayHours | 0–23 | Extra hours to wait (default 0) |
useSpintax | true / false | Pick one option from each {a|b} per email (default false) |
name | text | Your own label for the step |
Settings:
| Field | Default | |
|---|---|---|
dailySendLimit | 100 | Most emails this campaign sends a day (1–10,000). Each mailbox's own daily limit still applies. |
sendingHoursStart | 9 | Hour sending starts (0–23), in the campaign's time zone |
sendingHoursEnd | 17 | Hour sending stops (0–23). The same as the start means any time of day. |
timezone | America/New_York | A time zone name like Europe/London |
sendDays | [1,2,3,4,5] | Days to send on, 0 = Sunday … 6 = Saturday |
minDelay | 60 | Shortest gap between two emails from one mailbox, in seconds (0–3,600) |
maxDelay | 180 | Longest gap, in seconds (0–3,600) |
mailboxIds | [] | Mailboxes to send from (ids from GET /mailboxes). Empty = every mailbox that can send. |
stopOnReply | true | A lead who replies gets no more follow-ups |
includeUnsubscribeLink | true | Adds an unsubscribe line and one-click unsubscribe header |
trackOpens | false | Count opens with a tracking image (approximate) |
trackClicks | false | Count clicks by sending links through a short BY3 address |
scheduledStartAt | null | Don't send before this time, even once launched |
curl https://by3.com/api/v1/campaigns \
-H "Authorization: Bearer $BY3_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Q4 founders",
"listId": "LIST_ID",
"steps": [
{ "subject": "{Quick|Short} question, {{firstName|there}}",
"body": "Hi {{firstName|there}},\n\nSaw {{company}} is hiring sales reps. Worth a chat?",
"useSpintax": true },
{ "subject": "", "body": "Following up on my note, {{firstName|there}}.", "delayDays": 3 }
],
"settings": { "timezone": "America/Toronto", "dailySendLimit": 50 }
}'Answers 201 with the full campaign, as in GET /campaigns/:id. It also shows in the dashboard under Campaigns.
Starts sending, with the same checks as the Launch button. Launch also works on a paused campaign: leads added to its list since are enrolled and sending resumes. If something isn't ready you get 422 campaign_not_ready with one of these messages:
- Add at least one email step / The first email needs a subject / Email 2 has no body
- Choose a lead list
- Connect at least one mailbox that can send (connected, and active or ramping up; among mailboxIds if you set them)
- No leads can be emailed in this list (all unsubscribed, bounced or invalid)
A running or finished campaign gets 409 invalid_state. Leads who unsubscribed, bounced, failed the email check or are on your workspace's opt-out list are skipped and counted in skipped.
curl -X POST https://by3.com/api/v1/campaigns/CAMPAIGN_ID/launch \
-H "Authorization: Bearer $BY3_API_KEY"{
"campaign": { "id": "5281de3c-…", "name": "Q4 founders", "status": "running", … },
"enrolled": 5,
"skipped": 0,
"mailboxes": 1,
"startsAt": "2026-10-11T11:56:00.324Z"
}Pauses a running campaign: nothing more is sent until you resume it. Anything else gets 409 invalid_state. Answers { "campaign": { … } }.
curl -X POST https://by3.com/api/v1/campaigns/CAMPAIGN_ID/pause \
-H "Authorization: Bearer $BY3_API_KEY"Resumes a paused campaign where it left off. Anything else gets 409 invalid_state.
curl -X POST https://by3.com/api/v1/campaigns/CAMPAIGN_ID/resume \
-H "Authorization: Bearer $BY3_API_KEY"Replies
Conversations with at least one reply, the same ones as the Unified Inbox (bounce reports are left out), most recent reply first. Each comes with its latest reply, the lead, the campaign and the mailbox it arrived in. label and summary are filled in when AI labelling is on.
| Query | |
|---|---|
since | Only conversations that changed after this time (a new reply, or its AI label) |
label | Only conversations whose latest reply has this label: interested, not_interested, out_of_office, wrong_person, neutral |
limit, cursor | Paging |
To pick up new replies on a schedule, keep the newest updatedAt you've seen and pass it as since next time. updatedAt moves when a reply arrives and again when its AI label is added a few seconds later, so a conversation can come back once more: skip any latestReply.id you've already handled.
curl "https://by3.com/api/v1/replies?since=2026-10-11T00:00:00Z" \
-H "Authorization: Bearer $BY3_API_KEY"{
"data": [
{
"threadId": "<3816baf2-…@getacme.com>",
"lastReplyAt": "2026-10-11T11:56:51.354Z",
"updatedAt": "2026-10-11T11:56:54.102Z",
"replyCount": 1,
"unreadCount": 1,
"messageCount": 2,
"latestReply": {
"id": "552212f9-…",
"from": "ada@lovelacelabs.com",
"subject": "Re: Quick question, Ada",
"text": "Yes, interested. Can we talk Thursday at 2pm?",
"sentAt": "2026-10-11T11:56:51.000Z",
"label": "interested",
"summary": "Wants a call Thursday at 2pm."
},
"lead": { "id": "dfd87343-…", "email": "ada@lovelacelabs.com", "name": "Ada Lovelace", "company": "Lovelace Labs" },
"campaign": { "id": "5281de3c-…", "name": "Q4 founders" },
"mailbox": { "id": "f818e205-…", "email": "alex@getacme.com" }
}
],
"nextCursor": null
}Mailboxes
The workspace's mailboxes and how much they've sent. Passwords and sign-in tokens are never returned. todayLimit is today's limit while ramp-up is on; sentLast24h counts campaign and warm-up emails together. Use the ids in a campaign's mailboxIds.
curl https://by3.com/api/v1/mailboxes \
-H "Authorization: Bearer $BY3_API_KEY"{
"data": [
{ "id": "f818e205-…", "email": "alex@getacme.com", "name": "Alex Chen", "provider": "google",
"signIn": "app_password", "createdByBy3": false, "status": "warming", "connected": true,
"dailyLimit": 30, "todayLimit": 5, "rampUp": true, "warmup": false, "sentLast24h": 2,
"lastSentAt": "2026-10-11T11:56:42.502Z", "lastCheckedAt": "2026-10-11T11:56:51.300Z",
"lastError": null, "createdAt": "2026-10-11T11:55:54.103Z" }
]
}Domains
Whether a domain is free to register and what BY3 charges for it. forSale means it's taken but its owner is selling it. To buy, use Domains → Buy new domains in the dashboard.
curl "https://by3.com/api/v1/domains/check?domain=getacme.com" \
-H "Authorization: Bearer $BY3_API_KEY"{
"domain": "getacme.com",
"available": true,
"premium": false,
"forSale": false,
"price": { "amountCents": 1200, "currency": "USD", "display": "$12" }
}Example: add leads and launch
Create a list, add leads, create a campaign for it, then launch. Each step uses an id from the one before.
API=https://by3.com/api/v1
LIST=$(curl -s $API/lists -H "Authorization: Bearer $BY3_API_KEY" -H "Content-Type: application/json" \
-d '{"name": "Webinar sign-ups"}' | jq -r .id)
curl -s $API/lists/$LIST/leads -H "Authorization: Bearer $BY3_API_KEY" -H "Content-Type: application/json" \
-d '{"leads": [{"email": "sam@example.com", "firstName": "Sam", "company": "Example"}]}'
CAMPAIGN=$(curl -s $API/campaigns -H "Authorization: Bearer $BY3_API_KEY" -H "Content-Type: application/json" \
-d "{\"name\": \"Webinar follow-up\", \"listId\": \"$LIST\",
\"steps\": [{\"subject\": \"Thanks for joining, {{firstName|there}}\", \"body\": \"Hi {{firstName|there}}, …\"}]}" | jq -r .id)
curl -s -X POST $API/campaigns/$CAMPAIGN/launch -H "Authorization: Bearer $BY3_API_KEY"Questions or something missing? Keys and limits live in Settings → API.