Traffic2Leads Partner API

Programmatically create and manage Traffic2Leads client accounts — visitor identification, lead caps, and lead delivery, provisioned in a single API call.

Base URL https://partners.traffic2leads.ai

Overview

The Partner API lets approved Traffic2Leads partners provision client accounts under their own management. One POST /v1/accounts call creates the client account, its lead campaign, and its tracking pixel — with a monthly lead cap you control and, optionally, a webhook that delivers every identified lead straight to your systems.

  • Scoped to you. Your API key sees and manages only the accounts you created — nothing else.
  • Setup, not lead routing. Leads flow directly from the Traffic2Leads platform to each account's configured delivery (your webhook, or the account portal). The Partner API is the control plane.
  • Billed from creation. Every account goes live on billing immediately, unless your key is on a trial, which gives a fixed number of free leads shared across all of your accounts.
  • Caps bound spend. A monthly_lead_cap is required on every account, unless your key is configured with optional caps (then an account can be uncapped). This depends on your partner configuration.

Authentication

Every request (except /healthz) requires your partner API key as a Bearer token:

Authorization: Bearer t2l_pk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Your key was issued to you by the Traffic2Leads team. Keep it server-side — never embed it in a browser or mobile app. If a key is compromised, contact us and we'll rotate it immediately.

Partner configuration

Some behavior is set per key by Traffic2Leads rather than by your requests. Ask your account manager how yours is set up.

  • Account name prefix. Each partner key has its own name prefix, assigned by Traffic2Leads, which is added to every client_name you send. The examples on this page use the prefix ACME — , so Brightside Dental becomes ACME — Brightside Dental. Your accounts carry your own prefix.
  • Optional caps. Whether monthly_lead_cap is required or optional. See Update settings.
  • Trial budget. Whether your key starts with a shared budget of free leads. See Trial budget.
  • Lead payload. Whether webhooks carry the standard payload or the full payload with phone numbers. See Full lead payload.

Quickstart

Create a fully provisioned client account — pixel, caps, and webhook delivery — in one call:

curl -X POST https://partners.traffic2leads.ai/v1/accounts \
  -H "Authorization: Bearer t2l_pk_XXXX..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: brightside-2026-08-07-001" \
  -d '{
    "client_name": "Brightside Dental",
    "client_email": "owner@brightsidedental.com",
    "account_type": "B2C",
    "monthly_lead_cap": 500,
    "webhook_url": "https://your-platform.com/hooks/t2l/leads/<secret-token>"
  }'
const res = await fetch('https://partners.traffic2leads.ai/v1/accounts', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer t2l_pk_XXXX...',
    'Content-Type': 'application/json',
    'Idempotency-Key': 'brightside-2026-08-07-001',
  },
  body: JSON.stringify({
    client_name: 'Brightside Dental',
    client_email: 'owner@brightsidedental.com',
    account_type: 'B2C',
    monthly_lead_cap: 500,
    webhook_url: 'https://your-platform.com/hooks/t2l/leads/<secret-token>',
  }),
});
const account = await res.json();
// SAVE account.portal_password NOW — it is returned exactly once.

Then place the returned pixel_code (or javascript_code) on the client's website, and identified visitors start arriving at your webhook. That's the whole integration.

⚠ The portal password is returned exactly once The create response contains portal_password — the client's login for https://login.traffic2leads.ai. No other endpoint returns it, so it cannot be retrieved again through the API (it is only replayed within the 24-hour idempotency window). Capture it at creation time and deliver it to your client securely.
POST/v1/accounts

Create a client account

Creates the account, its lead campaign (active immediately), and its tracking pixel. Returns everything you need to onboard the client.

Request fields

FieldTypeDescription
client_namestringREQUIREDYour client's business name. Your key's name prefix is added automatically.
client_emailstringREQUIREDThe client's login email. Must not already exist on the platform — you'll get 409 duplicate_email if you've used it before. Store the client_email the response returns, not the one you sent: if the address is permanently reserved upstream, a plus-addressed email is registered with a retry token (e.g. -r2) and the response says so.
account_typestringREQUIRED"B2C" or "B2B" — the kind of lead identification.
monthly_lead_capintegerDEPENDS ON KEYMax leads per month. Delivery stops at the cap and resumes on the reset day. Required unless your key is configured with optional caps; then omit it for an uncapped account (responses show null).
daily_capintegerMax leads per day.
cap_reset_dayintegerDay of month (1–28) the monthly cap resets.
delivery_scheduleintegerLead delivery frequency: 1=daily, 2=hourly, 3=every 30 min, 4=every 15 min, 5=every 5 min (default).
state_filtersstring[]Geo filter by US state, e.g. ["TX","OK"]. Mutually exclusive with zip_filters.
zip_filtersstring[]Geo filter by 5-digit ZIP. Mutually exclusive with state_filters.
webhook_urlstringHTTPS endpoint that receives every identified lead. Put a secret token in the path — see Webhook security and Webhook lead payload.
validate_onlybooleanDry run: validates everything (including the duplicate-email check) and returns a preview — creates nothing and bills nothing. Use it while building your integration. Once a trial is used up it returns 403 trial_budget_exhausted, like a real create.

Idempotency (recommended)

Send an Idempotency-Key header (any unique string, up to 128 chars) with every create. If your request times out and you retry with the same key within 24 hours, you get the original response back (marked with an Idempotency-Replayed: true header) instead of a second billed account.

Response 201

{
  "account_id": 42,
  "client_name": "ACME — Brightside Dental",
  "client_email": "owner@brightsidedental.com",
  "account_type": "B2C",
  "caps": { "monthly_lead_cap": 500, "daily_cap": null, "cap_reset_day": null },
  "delivery_schedule": null,
  "state_filters": null,
  "zip_filters": null,
  "status": "active",
  "webhook_url": "https://your-platform.com/hooks/t2l/leads/<secret-token>",
  "pixel_code": "<img src='https://rdcdn.com/rt?aid=XXXXX&e=1&img=1' ... />",
  "javascript_code": "<script> ... </script>",
  "portal_password": "Xu2!example",
  "created_at": "2026-08-07T18:31:02.558Z"
}

account_id is the ID you use on every other endpoint. Use pixel_code (image tag) or javascript_code (richer tracking) on the client's site — one of them, not both.

GET/v1/accounts

List your accounts

Returns every account you've created, newest first.

curl https://partners.traffic2leads.ai/v1/accounts \
  -H "Authorization: Bearer t2l_pk_XXXX..."
const res = await fetch('https://partners.traffic2leads.ai/v1/accounts', {
  headers: { 'Authorization': 'Bearer t2l_pk_XXXX...' },
});
const { accounts } = await res.json();
{
  "accounts": [
    {
      "account_id": 42,
      "client_name": "ACME — Brightside Dental",
      "client_email": "owner@brightsidedental.com",
      "account_type": "B2C",
      "caps": { "monthly_lead_cap": 500, "daily_cap": null, "cap_reset_day": null },
      "delivery_schedule": null,
      "state_filters": null,
      "zip_filters": null,
      "status": "active",
      "webhook_url": "https://your-platform.com/hooks/t2l/leads/<secret-token>",
      "created_at": "2026-08-07T18:31:02.558Z"
    }
  ]
}
GET/v1/accounts/{id}

Get one account

Same shape as the list entries, plus pixel_code and javascript_code so you can re-fetch the pixel any time. The portal_password is never included — it exists only in the create response.

PATCH/v1/accounts/{id}

Update account settings

Send any subset of the fields below — only what you send changes.

FieldNotes
monthly_lead_capNew monthly cap. On keys with optional caps, null removes the cap (uncapped).
daily_capNew daily cap.
cap_reset_day1–28.
delivery_schedule1–5 (see create).
state_filters / zip_filtersReplaces the existing geo filters. Setting one type clears the other; you can't send both in one request.
curl -X PATCH https://partners.traffic2leads.ai/v1/accounts/42 \
  -H "Authorization: Bearer t2l_pk_XXXX..." \
  -H "Content-Type: application/json" \
  -d '{ "monthly_lead_cap": 1000, "state_filters": ["TX", "OK"] }'
await fetch('https://partners.traffic2leads.ai/v1/accounts/42', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer t2l_pk_XXXX...',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ monthly_lead_cap: 1000, state_filters: ['TX', 'OK'] }),
});

Responds 200 with the full updated account. PATCH /v1/accounts/{id}/limits also exists as a caps-only alias (accepts just the three cap fields).

Lead caps: required or optional

Whether monthly_lead_cap is required depends on your partner configuration:

  • Caps required (the default). Every create must send a positive monthly_lead_cap; omitting it returns 400 validation_error. A cap can be changed but not removed.
  • Optional caps. Omit monthly_lead_cap on create for an uncapped account, or send null to remove an existing cap. Uncapped accounts show "monthly_lead_cap": null in every response.
curl -X PATCH https://partners.traffic2leads.ai/v1/accounts/42/limits \
  -H "Authorization: Bearer t2l_pk_XXXX..." \
  -H "Content-Type: application/json" \
  -d '{ "monthly_lead_cap": null }'

Once a trial is used up, raising or removing a cap returns 403 trial_budget_exhausted; lowering one still works.

PUT/v1/accounts/{id}/webhook

Set or replace the delivery webhook

Point the account's lead delivery at a (new) HTTPS endpoint at any time — including after a trial is used up. This is also how you rotate the URL's secret token; see Webhook security.

curl -X PUT https://partners.traffic2leads.ai/v1/accounts/42/webhook \
  -H "Authorization: Bearer t2l_pk_XXXX..." \
  -H "Content-Type: application/json" \
  -d '{ "webhook_url": "https://your-platform.com/hooks/t2l/leads/<new-secret-token>" }'
await fetch('https://partners.traffic2leads.ai/v1/accounts/42/webhook', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer t2l_pk_XXXX...',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ webhook_url: 'https://your-platform.com/hooks/t2l/leads/<new-secret-token>' }),
});
POST/v1/accounts/{id}/pause  ·  /activate

Pause / resume lead delivery

POST /v1/accounts/{id}/pause stops lead collection for the account; POST /v1/accounts/{id}/activate resumes it. Use pause when a client offboards — there is no delete (contact us for permanent removal).

Pause always works. Once a trial is used up, activate returns 403 trial_budget_exhausted until the trial converts to paid.

GET/v1/usage

Usage — lead counts

Per-account lead counts for billing and reporting. Two modes:

  • ?month=YYYY-MM — a calendar month (defaults to the current month if omitted)
  • ?start=YYYY-MM-DD&end=YYYY-MM-DD — any date range up to 366 days
curl "https://partners.traffic2leads.ai/v1/usage?start=2026-08-01&end=2026-08-31" \
  -H "Authorization: Bearer t2l_pk_XXXX..."
const res = await fetch(
  'https://partners.traffic2leads.ai/v1/usage?start=2026-08-01&end=2026-08-31',
  { headers: { 'Authorization': 'Bearer t2l_pk_XXXX...' } },
);
const usage = await res.json();
{
  "start": "2026-08-01",
  "end": "2026-08-31",
  "accounts": [
    { "account_id": 42, "client_name": "ACME — Brightside Dental", "lead_count": 137 },
    { "account_id": 43, "client_name": "ACME — Northgate Plumbing", "lead_count": 88 }
  ],
  "total_leads": 225
}

Keys on a trial also get a trial object (omitted when the key has no trial). It covers the whole trial, not the period you asked for; status is "active" or "exhausted":

"trial": { "total_leads": 500, "delivered": 212, "remaining": 288, "status": "active" }
GET/healthz

Health check

No auth required. Returns {"status":"ok","db":"ok"} when the API is fully operational — useful for your monitoring.

Webhook lead payload

When an account has a webhook configured, each identified lead is delivered to your endpoint as an HTTP POST with a JSON body (Content-Type: application/json), one lead per request. Respond 2xx quickly and process asynchronously. De-duplicate on RecordId.

B2C and B2B deliver different fields The account's account_type determines the payload. B2C resolves a consumer identity — name, email, and postal address. B2B resolves a person at a company — firmographics (company, job title, LinkedIn) plus work and personal email, and no postal address. Both carry the same visit-behavior fields.

Shared by both

FieldDescription
FirstName / LastNameThe identified visitor's name.
EmailPrimary verified email address.
EmailHashStable hashed identifier for the contact.
RecordIdUnique delivery record ID — use it to de-duplicate.
SendDateWhen the lead was queued for delivery.
FirstPageViewUrl / LastPageViewUrlFirst and most recent page viewed.
PageViewUrlsComma-separated list of every page viewed.
TotalPageViewsPage views across the visit(s).
InitialPageViewDate / LastPageViewDateFirst and last page-view timestamps.
ImpliedSecondsOnSiteEstimated time on site.
VisitDetailsAdditional visit attributes.
CampaignId / CampaignNameThe campaign that produced the lead.
AudienceId / AudienceNameThe pixel audience the lead came from.

B2C only

FieldDescription
Address / Address2 / City / State / ZipPostal address, when resolved.

B2B only

FieldDescription
CompanyThe company the person works for.
JobTitleTheir role at that company.
LinkedInUrlLinkedIn profile URL, when resolved.
WorkEmailBusiness email address.
PersonalEmailPersonal email address, when resolved.

Example — B2B

{
  "FirstName": "Sarah", "LastName": "Miller",
  "Company": "Meridian Group", "JobTitle": "VP of Operations",
  "LinkedInUrl": "https://www.linkedin.com/in/sarah-miller-example",
  "WorkEmail": "s.miller@meridiangroup.com", "PersonalEmail": "sarah.miller@example.com",
  "Email": "s.miller@meridiangroup.com", "EmailHash": "a3f1c9...",
  "RecordId": "59154746", "SendDate": "2026-08-09T14:10:00Z",
  "FirstPageViewUrl": "https://yourclient.com/pricing",
  "LastPageViewUrl": "https://yourclient.com/book-a-demo",
  "PageViewUrls": "https://yourclient.com/, https://yourclient.com/pricing, https://yourclient.com/book-a-demo",
  "TotalPageViews": 7, "ImpliedSecondsOnSite": 252,
  "InitialPageViewDate": "2026-08-09T14:02:11Z", "LastPageViewDate": "2026-08-09T14:06:23Z",
  "CampaignId": 15429, "CampaignName": "ACME — Brightside Dental",
  "AudienceId": 34963, "AudienceName": "ACME — Brightside Dental Pixel", "VisitDetails": ""
}

Example — B2C

{
  "FirstName": "Dana", "LastName": "Reed",
  "Email": "dana.reed@example.com", "EmailHash": "7b22e4...",
  "Address": "412 W Oak St", "Address2": "", "City": "Austin", "State": "TX", "Zip": "78701",
  "RecordId": "59152208", "SendDate": "2026-08-09T14:10:00Z",
  "FirstPageViewUrl": "https://yourclient.com/",
  "LastPageViewUrl": "https://yourclient.com/pricing",
  "PageViewUrls": "https://yourclient.com/, https://yourclient.com/pricing",
  "TotalPageViews": 3, "ImpliedSecondsOnSite": 118,
  "InitialPageViewDate": "2026-08-09T13:41:02Z", "LastPageViewDate": "2026-08-09T13:43:00Z",
  "CampaignId": 15421, "CampaignName": "ACME — Brightside Dental",
  "AudienceId": 34956, "AudienceName": "ACME — Brightside Dental Pixel", "VisitDetails": ""
}

Full lead payload (with phones)

Each partner key is configured by Traffic2Leads with either the standard payload above or the full payload, which adds phone numbers and, for B2B, the complete person and company profile.

Phone is part of the full payload Phone data is included for partners on the full payload. There is no separate charge for it in the API, and no request field to turn it on: the payload type is set per partner key by Traffic2Leads.

Any field can be empty or missing on a given lead; not every record returns every field.

Phone fields

FieldPayloadFormatCoverage
PhoneNumberFull B2C10 digits, no punctuation: "5551234567"Roughly half of B2C leads
MobilePhoneFull B2B"+1 555-123-4567"About 3 in 4 B2B leads
KnownPhoneNumbersFull B2BComma-separated: "+1 555-123-4567,+1 555-987-6543"Almost all B2B leads

Full B2C

The standard B2C fields plus PhoneNumber.

{
  "FirstName": "Jane", "LastName": "Doe",
  "Email": "jane.doe@example.com", "EmailHash": "5f2b9c...",
  "PhoneNumber": "5551234567",
  "Address": "100 Main St", "Address2": "Apt 4", "City": "Springfield", "State": "IL", "Zip": "62704",
  "RecordId": "60012345", "SendDate": "2026-11-20T14:10:00Z",
  "FirstPageViewUrl": "https://yourclient.example.com/",
  "LastPageViewUrl": "https://yourclient.example.com/pricing",
  "PageViewUrls": "https://yourclient.example.com/, https://yourclient.example.com/pricing",
  "TotalPageViews": 3, "ImpliedSecondsOnSite": 118,
  "InitialPageViewDate": "2026-11-20T13:41:02Z", "LastPageViewDate": "2026-11-20T13:43:00Z",
  "CampaignId": 15421, "CampaignName": "ACME — Brightside Dental",
  "AudienceId": 34956, "AudienceName": "ACME — Brightside Dental Pixel", "VisitDetails": ""
}

Full B2B

Keys: Address, AudienceId, AudienceName, BirthDate, CampaignId, CampaignName, City, CompanyAddress, CompanyCity, CompanyFacebookUrl, CompanyIndustry, CompanyLinkedInUrl, CompanyLocation, CompanyLogoUrl, CompanyName, CompanySize, CompanyState, CompanyTwitterUrl, CompanyUrl, CompanyZip, Email, FaceBookId, FaceBookUrl, FirstName, FirstPageViewUrl, Gender, GitHubUrl, GitHubUsername, ImpliedSecondsOnSite, InitialPageViewDate, JobRole, JobStartDate, JobTitle, KnownEmails, KnownEmailsString, KnownPhoneNumbers, LastName, LastPageViewDate, LastPageViewUrl, LinkedInId, LinkedInUrl, MobilePhone, PageViewUrls, RecordId, SendDate, Skills, State, TotalPageViews, TwitterUrl, TwitterUsername, VisitDetails, WorkEmail, Zip. Email is the personal email; WorkEmail is the business one. KnownEmails holds all known email addresses for the person, as delivered by LeadPost; use KnownEmailsString for a comma-separated string. KnownPhoneNumbers is a comma-separated string.

{
  "FirstName": "Jane", "LastName": "Doe", "Gender": "F", "BirthDate": "1985-04-12",
  "Email": "jane.doe@example.com", "WorkEmail": "jane.doe@acmecorp.example.com",
  "KnownEmails": "jane.doe@example.com,jane.doe@acmecorp.example.com",
  "KnownEmailsString": "jane.doe@example.com,jane.doe@acmecorp.example.com",
  "MobilePhone": "+1 555-123-4567",
  "KnownPhoneNumbers": "+1 555-123-4567,+1 555-987-6543",
  "Address": "100 Main St", "City": "Springfield", "State": "IL", "Zip": "62704",
  "JobTitle": "VP of Operations", "JobRole": "Operations", "JobStartDate": "2021-03-01",
  "Skills": "Operations, Supply Chain, Budgeting",
  "CompanyName": "Acme Corp", "CompanyUrl": "https://acmecorp.example.com",
  "CompanyIndustry": "Manufacturing", "CompanySize": "201-500",
  "CompanyAddress": "500 Industrial Pkwy", "CompanyCity": "Springfield", "CompanyState": "IL",
  "CompanyZip": "62701", "CompanyLocation": "Springfield, IL",
  "CompanyLinkedInUrl": "https://www.linkedin.com/company/acme-corp-example",
  "CompanyFacebookUrl": "https://www.facebook.com/acmecorp.example",
  "CompanyTwitterUrl": "https://twitter.com/acmecorp_example",
  "CompanyLogoUrl": "https://acmecorp.example.com/logo.png",
  "LinkedInId": "jane-doe-example", "LinkedInUrl": "https://www.linkedin.com/in/jane-doe-example",
  "FaceBookId": "", "FaceBookUrl": "",
  "TwitterUsername": "janedoe_example", "TwitterUrl": "https://twitter.com/janedoe_example",
  "GitHubUsername": "", "GitHubUrl": "",
  "RecordId": "60012346", "SendDate": "2026-11-20T14:10:00Z",
  "FirstPageViewUrl": "https://yourclient.example.com/pricing",
  "LastPageViewUrl": "https://yourclient.example.com/book-a-demo",
  "PageViewUrls": "https://yourclient.example.com/pricing, https://yourclient.example.com/book-a-demo",
  "TotalPageViews": 7, "ImpliedSecondsOnSite": 252,
  "InitialPageViewDate": "2026-11-20T14:02:11Z", "LastPageViewDate": "2026-11-20T14:06:23Z",
  "CampaignId": 15429, "CampaignName": "ACME — Northgate Plumbing",
  "AudienceId": 34963, "AudienceName": "ACME — Northgate Plumbing Pixel", "VisitDetails": ""
}

Webhook security

The URL is the credential Lead deliveries are not signed and carry no auth header, so anyone who knows your webhook URL can post to it. Treat the URL as a secret.
  • HTTPS only. The API rejects any other scheme.
  • Put a long random secret token in the path, e.g. https://hooks.example.com/t2l/leads/3f9c… with 64 hex characters (openssl rand -hex 32). A token per account lets you revoke one account's URL on its own.
  • Reject requests without the token. Return 404 so the endpoint doesn't advertise itself, and compare in constant time.
  • Don't log full URLs, including in reverse-proxy access logs; log the path without the token.
  • Rotate by generating a new token, accepting both for a short overlap, calling PUT /v1/accounts/{id}/webhook with the new URL, then retiring the old token.

Minimal receiver (Node.js / Express)

import crypto from 'node:crypto';
import express from 'express';

const TOKENS = new Set(process.env.T2L_WEBHOOK_TOKENS.split(',')); // current + previous during rotation
const app = express();

function tokenOk(token) {
  const given = Buffer.from(token ?? '');
  for (const t of TOKENS) {
    const want = Buffer.from(t);
    if (given.length === want.length && crypto.timingSafeEqual(given, want)) return true;
  }
  return false;
}

app.post('/t2l/leads/:token', express.json(), (req, res) => {
  if (!tokenOk(req.params.token)) return res.sendStatus(404);
  res.sendStatus(204);            // acknowledge fast
  queueLead(req.body);            // de-duplicate on RecordId, process async
});

Trial budget

Some partner keys start on a trial: a fixed number of free leads (for example 500) shared across all accounts on the key, not per account. Whether your key has a trial, and its size, is set by Traffic2Leads. Track it with the trial object in GET /v1/usage.

When the trial is used up

  • Every account on the key is paused.
  • These calls return 403 trial_budget_exhausted until the trial is converted to a paid plan:
    • POST /v1/accounts, including validate_only dry runs
    • POST /v1/accounts/{id}/activate
    • PATCH /v1/accounts/{id}/limits (and PATCH /v1/accounts/{id}) when it raises a cap or removes one (null)
  • These keep working: lowering caps, pause, every GET, and webhook changes.

Delivery is checked about every 15 minutes, so a few leads past the limit can arrive before the accounts are paused.

The error, exactly (the numbers reflect your key's trial size):

HTTP 403
{"error":{"code":"trial_budget_exhausted","message":"Trial lead budget used: 500 of 500 trial leads have been delivered across your accounts. Creating accounts, activating accounts and raising or removing caps are disabled until the trial is converted to a paid plan. Contact your Traffic2Leads account manager."}}

A related code, 403 partner_writes_blocked, means account changes have been temporarily disabled for your key:

HTTP 403
{"error":{"code":"partner_writes_blocked","message":"Account changes are temporarily disabled for this partner key. Contact your Traffic2Leads account manager."}}

Retrying won't clear either one — contact your Traffic2Leads account manager.

Errors & rate limits

Rate limit: 60 requests per minute per API key. Exceeding it returns 429 with a Retry-After header (seconds). All errors share one shape:

{ "error": { "code": "validation_error", "message": "monthly_lead_cap: monthly_lead_cap is required" } }
HTTPCodeMeaning
400validation_errorA field failed validation — the message names it.
400invalid_jsonThe request body isn't valid JSON.
401unauthorizedMissing, malformed, or revoked API key.
403trial_budget_exhaustedYour key's trial is used up; create, activate and cap raises are blocked until it converts to paid. See Trial budget.
403partner_writes_blockedAccount changes are temporarily disabled for your key. Contact your account manager.
404not_foundThe account doesn't exist — or isn't yours.
409duplicate_emailYou already created an account with this client_email.
409partial_accountThe create half-finished upstream; the message names the account_id to discard before retrying.
409email_unavailableThe client_email is permanently reserved and no usable variant was available; use a different address.
429rate_limitedToo many requests — honor Retry-After.
502upstream_errorThe platform rejected the operation; the message includes the reason.
500internal_errorUnexpected error — contact us if it persists.

Important notes

Credentials are yours to deliver No welcome email is ever sent to the client — by design, so your brand stays in front. The portal_password from the create response is the client's login for https://login.traffic2leads.ai; deliver it to them through your own channel. It is returned exactly once (plus the 24-hour idempotent replay window) and can never be retrieved afterward.
  • Billing starts at creation, unless your key is on a trial. Caps are your spend control; whether monthly_lead_cap is required depends on your partner configuration.
  • Store the returned client_email. It can differ from the one you sent when the address is permanently reserved upstream.
  • Password resets are self-serve at login.traffic2leads.ai. Heads-up: the reset email arrives from a neutral platform domain (bit-sync.com), not a Traffic2Leads address.
  • No lead history over the API. Leads are delivered to the account's webhook (and visible in the account portal). The API reports counts, not lead records — so make your webhook endpoint reliable, and use RecordId to de-duplicate.
  • No delete endpoint. Pause an account to stop collection; contact us for permanent removal.
  • Test with validate_only — it exercises your full request, including duplicate detection, without creating a billed account.

Questions or a stuck integration? Contact your Traffic2Leads account manager.