DOCSDevelopersAPI Reference

    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 canEndpoint
    See which workspace a key belongs toGET /me
    List and create lead listsGET /lists, POST /lists
    Add leads to a list and read them backPOST /lists/:id/leads, GET /lists/:id/leads
    List, read and create campaignsGET /campaigns, GET /campaigns/:id, POST /campaigns
    Launch, pause and resume campaignsPOST /campaigns/:id/launch, /pause, /resume
    Read replies from the Unified InboxGET /replies
    See your mailboxesGET /mailboxes
    Check whether a domain is free to registerGET /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 GET endpoint.
    • 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:

    Every request
    curl https://by3.com/api/v1/me \
      -H "Authorization: Bearer $BY3_API_KEY"

    Keep keys on your server

    Anyone with a key can read and change the workspace's leads and campaigns. Call the API from your server or tool, never from code that runs in a web page. Your dashboard sign-in doesn't work on the API: requests without a key get 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 body
    {
      "error": {
        "code": "validation_error",
        "message": "steps[1].delayDays must be a whole number from 0 to 90"
      }
    }
    StatuscodeWhat it means
    400validation_errorA field is missing, has the wrong type, or isn't allowed. The message names the field.
    400invalid_jsonThe body isn't valid JSON.
    401missing_api_keyNo Authorization header (a dashboard sign-in doesn't count).
    401invalid_api_keyThe key doesn't exist. Check you copied all of it.
    401revoked_api_keyThe key was revoked in Settings → API.
    403insufficient_scopeA read-only key tried to change something.
    404not_foundNo such list or campaign in this key's workspace, or no such endpoint.
    409invalid_stateThe campaign can't do that now, e.g. pausing a draft.
    413payload_too_largeThe body is too big. Send fewer leads per request.
    422campaign_not_readyLaunch checks failed. The message says what to fix.
    429rate_limitedToo many requests. Wait for Retry-After seconds.
    502 / 503upstream_error, unavailableDomain check couldn't run. Try again later.
    500server_errorSomething 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.

    Next 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

    GET/api/v1/meAny key

    The workspace this key belongs to, the key's name and access, and the rate limit.

    Request
    curl https://by3.com/api/v1/me \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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

    GET/api/v1/listsAny key

    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.

    Request
    curl https://by3.com/api/v1/lists \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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
    }
    POST/api/v1/listsRead and write key

    Creates an empty list. Then add leads to it.

    FieldType
    nametext, requiredUp to 200 characters
    descriptiontextUp to 1,000 characters
    Request
    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.

    POST/api/v1/lists/:id/leadsRead and write key

    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.

    FieldType
    emailtext, requiredA valid address
    firstNametextIf missing, the first word of fullName is used
    lastNametext
    fullNametextIf missing, first + last name
    companytext
    titletextJob title
    websitetextCompany website or domain; stored as the domain, e.g. acme.com
    linkedinUrltext
    phonetext
    locationtext
    customFieldsobjectUp to 50 extra values (text, numbers or true/false), usable in emails as {{Field Name}}
    Request
    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" }
        ]
      }'
    Response
    {
      "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.

    Request
    curl "https://by3.com/api/v1/lists/LIST_ID/leads?limit=2" \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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.

    Request
    curl "https://by3.com/api/v1/campaigns?status=running" \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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).

    Request
    curl https://by3.com/api/v1/campaigns/CAMPAIGN_ID \
      -H "Authorization: Bearer $BY3_API_KEY"
    POST/api/v1/campaignsRead and write 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.

    FieldType
    nametext, requiredUp to 200 characters
    listIdtextThe lead list to send to (needed before launch)
    descriptiontext
    stepslistUp to 20 emails, in order (below)
    settingsobjectSending settings (below); anything left out uses the default

    Each step:

    FieldType
    subjecttextLeave empty on a follow-up to send it as a reply in the same thread ("Re: …")
    bodytextPlain text. Use {{firstName|there}} variables and, with useSpintax, {Hi|Hello}
    delayDays0–90Days to wait after the previous email (default 3; ignored on the first)
    delayHours0–23Extra hours to wait (default 0)
    useSpintaxtrue / falsePick one option from each {a|b} per email (default false)
    nametextYour own label for the step

    Settings:

    FieldDefault
    dailySendLimit100Most emails this campaign sends a day (1–10,000). Each mailbox's own daily limit still applies.
    sendingHoursStart9Hour sending starts (0–23), in the campaign's time zone
    sendingHoursEnd17Hour sending stops (0–23). The same as the start means any time of day.
    timezoneAmerica/New_YorkA time zone name like Europe/London
    sendDays[1,2,3,4,5]Days to send on, 0 = Sunday … 6 = Saturday
    minDelay60Shortest gap between two emails from one mailbox, in seconds (0–3,600)
    maxDelay180Longest gap, in seconds (0–3,600)
    mailboxIds[]Mailboxes to send from (ids from GET /mailboxes). Empty = every mailbox that can send.
    stopOnReplytrueA lead who replies gets no more follow-ups
    includeUnsubscribeLinktrueAdds an unsubscribe line and one-click unsubscribe header
    trackOpensfalseCount opens with a tracking image (approximate)
    trackClicksfalseCount clicks by sending links through a short BY3 address
    scheduledStartAtnullDon't send before this time, even once launched
    Request
    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.

    POST/api/v1/campaigns/:id/launchRead and write key

    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.

    Request
    curl -X POST https://by3.com/api/v1/campaigns/CAMPAIGN_ID/launch \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "campaign": { "id": "5281de3c-…", "name": "Q4 founders", "status": "running", … },
      "enrolled": 5,
      "skipped": 0,
      "mailboxes": 1,
      "startsAt": "2026-10-11T11:56:00.324Z"
    }
    POST/api/v1/campaigns/:id/pauseRead and write key

    Pauses a running campaign: nothing more is sent until you resume it. Anything else gets 409 invalid_state. Answers { "campaign": { … } }.

    Request
    curl -X POST https://by3.com/api/v1/campaigns/CAMPAIGN_ID/pause \
      -H "Authorization: Bearer $BY3_API_KEY"
    POST/api/v1/campaigns/:id/resumeRead and write key

    Resumes a paused campaign where it left off. Anything else gets 409 invalid_state.

    Request
    curl -X POST https://by3.com/api/v1/campaigns/CAMPAIGN_ID/resume \
      -H "Authorization: Bearer $BY3_API_KEY"

    Replies

    GET/api/v1/repliesAny key

    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
    sinceOnly conversations that changed after this time (a new reply, or its AI label)
    labelOnly conversations whose latest reply has this label: interested, not_interested, out_of_office, wrong_person, neutral
    limit, cursorPaging

    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.

    Request
    curl "https://by3.com/api/v1/replies?since=2026-10-11T00:00:00Z" \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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.

    Request
    curl https://by3.com/api/v1/mailboxes \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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.

    Request
    curl "https://by3.com/api/v1/domains/check?domain=getacme.com" \
      -H "Authorization: Bearer $BY3_API_KEY"
    Response
    {
      "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.

    bash
    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.

    BY3 Documentation