Developer Platform · REST API v1

Automation blueprints & SDK quickstarts.

Connect Clay, n8n, Make, Zapier, and custom services to WarmerStack using SHA-256 scoped Bearer keys (ws_live_...) under FORCE RLS workspace isolation and constant-time HMAC-SHA256 signed webhooks.

OPENAPI 3.1https://www.warmerstack.com/api/openapi.json

OpenAPI 3.1.0

JSON Schema 2020-12

11+ Fine-Grained Scopes

12 canonical · least privilege

HMAC-SHA256 Signed Webhooks

±300s replay tolerance

SSRF DNS-Pinned Delivery

HTTPS 443/8443 · no redirects

Section 1 · SDK & Language Quickstarts

Copy-ready REST API v1 clients.

Every call targets https://www.warmerstack.com with a workspace-scoped Bearer token stored strictly as a SHA-256 digest in app.api_keys.

Auth & Rate-Limit Contract

Authorization: Bearer ws_live_YOUR_SCOPED_KEY

Headers: X-RateLimit-Limit · X-RateLimit-Remaining · X-RateLimit-Reset · Retry-After (429)

GET/api/v1/domains · /api/v1/mailboxes

List domains + DNS health & mailbox caps

domains:readmailboxes:read

Inspect verified sending domains, SPF/DKIM/DMARC/RBL status, isolated tracking hostnames, and warmed mailbox health without ever exposing credentials or SMTP/IMAP secrets.

domains-and-mailboxes.shbash
export WARMERSTACK_API_KEY="ws_live_YOUR_SCOPED_KEY"

# 1. List ready sending domains + DNS health
curl -sS -G "https://www.warmerstack.com/api/v1/domains" \
  -H "Authorization: Bearer ${WARMERSTACK_API_KEY}" \
  -H "Accept: application/json" \
  --data-urlencode "status=ready" \
  --data-urlencode "limit=50"

# 2. List high-trust mailboxes with warmup enabled (sanitized — zero credentials)
curl -sS -G "https://www.warmerstack.com/api/v1/mailboxes" \
  -H "Authorization: Bearer ${WARMERSTACK_API_KEY}" \
  -H "Accept: application/json" \
  --data-urlencode "tier=high_trust" \
  --data-urlencode "warmupEnabled=true" \
  --data-urlencode "limit=50"

Inspect X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset on every response.

POST/api/v1/suppressions

Idempotent Do-Not-Contact suppression upsert

suppressions:write

Permanently insert up to 200 opt-outs per batch using append-only INSERT ... ON CONFLICT DO NOTHING (UPDATE/DELETE are revoked on app.workspace_opt_outs). Automatically cascades across +tag aliases.

upsert-suppressions.shbash
curl -i -sS -X POST "https://www.warmerstack.com/api/v1/suppressions" \
  -H "Authorization: Bearer ${WARMERSTACK_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "suppressions": [
      {
        "email": "optout@acme-enterprise.example",
        "reason": "crm_do_not_contact",
        "sourceChannel": "hubspot_sync"
      },
      {
        "email": "legal+notices@tryacmehq.example",
        "reason": "manual_gdpr_request",
        "sourceChannel": "api_v1_sync"
      }
    ]
  }'

Returns HTTP 201 when insertedCount > 0, or HTTP 200 on pure idempotent replay (already_suppressed).

POST/api/v1/placement-tests

Trigger a 6-ESP seed placement test

placement:writeplacement:read

Atomically reserves 1 placement_test credit and launches a 6-ESP probe across Gmail, M365, Yahoo, iCloud, Zoho, and Fastmail. Rejects public URL shorteners (422) and CRLF header injection (400).

trigger-placement-test.shbash
# Launch 6-ESP seed placement test (1..15 senderMailboxIds)
curl -sS -X POST "https://www.warmerstack.com/api/v1/placement-tests" \
  -H "Authorization: Bearer ${WARMERSTACK_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "senderMailboxIds": ["mbx_01j9example001", "mbx_01j9example002"],
    "subject": "Quick Q4 deliverability benchmark question",
    "bodyText": "Hi Hannah, sharing a brief plain-text pre-launch seed probe for acme-enterprise.example before opening our Q4 sequence."
  }'

# Poll sanitized placement results (proprietary seed inbox addresses redacted)
curl -sS -G "https://www.warmerstack.com/api/v1/placement-tests" \
  -H "Authorization: Bearer ${WARMERSTACK_API_KEY}" \
  --data-urlencode "status=completed" \
  --data-urlencode "limit=10"

Returns 402 insufficient_credits if the workspace placement wallet is empty, or 403 read_only_role for client_viewer seats.

GEThasMore · nextCursor · Retry-After

Cursor pagination & 429 Retry-After backoff

domains:read

Walk keyset-paginated responses deterministically without offset drift, pausing whenever HTTP 429 returns Retry-After.

paginate-with-backoff.shbash
#!/usr/bin/env bash
set -euo pipefail

cursor=""
while true; do
  hdr="$(mktemp)"
  body="$(mktemp)"
  url="https://www.warmerstack.com/api/v1/domains?limit=100"
  [[ -n "${cursor}" ]] && url="${url}&cursor=${cursor}"

  code="$(curl -sS -D "${hdr}" -o "${body}" -w "%{http_code}" \
    -H "Authorization: Bearer ${WARMERSTACK_API_KEY}" \
    -H "Accept: application/json" "${url}")"

  if [[ "${code}" == "429" ]]; then
    retry_after="$(awk -F': ' 'tolower($1)=="retry-after"{gsub(/\r/,"",$2); print $2}' "${hdr}")"
    sleep "${retry_after:-5}"
    rm -f "${hdr}" "${body}"
    continue
  fi

  [[ "${code}" == "200" ]] || { cat "${body}" >&2; rm -f "${hdr}" "${body}"; exit 1; }
  jq -c '.data[] | {domainName, status, allChecksPassing: .dnsHealth.allChecksPassing}' "${body}"

  has_more="$(jq -r '.hasMore' "${body}")"
  cursor="$(jq -r '.nextCursor // ""' "${body}")"
  rm -f "${hdr}" "${body}"
  [[ "${has_more}" == "true" && -n "${cursor}" ]] || break
done
Section 2 · Automation Platform Blueprints

Production templates for Clay, n8n, Make & Zapier.

Drop-in HTTP enrichment configs, raw-body HMAC-SHA256 verification nodes, and error-resilient suppression sync flows with zero field drift.

Clay Rate-Limit Configuration (120 req/min default · up to 3,000 req/min)

Workspace API keys default to 120 requests/minute (configurable from 10 to 3,000 req/min in Console Settings). Set Clay's HTTP API column rate limit to 2 req/sec for default keys and enable automatic retry on HTTP 429 so Retry-After is honored across large table runs.

suppressions:readleads:writesuppressions:write

(a) Pre-Flight DNC Enrichment Column — GET /api/v1/suppressions?email={{work_email}}

Matches both exact normalized addresses and +tag suppression bases across your active workspace and org-global opt-outs (never leaking other agency client workspaces). Returns a top-level suppressed boolean for instant Clay run conditions.

clay-column-a-dnc-precheck.jsonJSONsuppressions:read
{
  "columnName": "warmerstack_dnc_precheck",
  "type": "http_api_enrichment",
  "method": "GET",
  "endpoint": "https://www.warmerstack.com/api/v1/suppressions",
  "queryParameters": {
    "email": "{{work_email}}"
  },
  "headers": {
    "Authorization": "Bearer {{secrets.WARMERSTACK_API_KEY}}",
    "Accept": "application/json"
  },
  "rateLimit": {
    "maxRequestsPerMinute": 120,
    "retryOnStatus": [
      429,
      502,
      503
    ],
    "respectRetryAfterHeader": true
  },
  "runCondition": "Boolean({{work_email}}) && {{work_email}}.includes('@')",
  "expectedSuccessStatus": [
    200
  ],
  "outputMapping": {
    "isSuppressed": "{{response.body.suppressed}}",
    "suppressionCount": "{{response.body.data.length}}",
    "suppressionReason": "{{response.body.data[0].reason}}"
  }
}

(b) Lead Upsert Enrichment Column — POST /api/v1/leads

Upserts enriched B2B contacts directly into WarmerStack using sourceId for deterministic re-runs (up to 100 leads per batch when wrapped in { "leads": [...] }).

clay-column-b-lead-upsert.jsonJSONleads:write
{
  "columnName": "warmerstack_upsert_lead",
  "type": "http_api_enrichment",
  "method": "POST",
  "endpoint": "https://www.warmerstack.com/api/v1/leads",
  "headers": {
    "Authorization": "Bearer {{secrets.WARMERSTACK_API_KEY}}",
    "Content-Type": "application/json"
  },
  "body": {
    "email": "{{work_email}}",
    "name": "{{full_name}}",
    "companyName": "{{company_name}}",
    "city": "{{company_city}}",
    "country": "{{company_country}}",
    "category": "{{industry_segment}}",
    "website": "{{company_domain}}",
    "phone": "{{direct_phone}}",
    "source": "clay",
    "sourceId": "{{clay_row_id}}",
    "legalBasis": "legitimate_interest_b2b",
    "status": "ready",
    "customFields": {
      "title": "{{job_title}}",
      "linkedinUrl": "{{linkedin_url}}",
      "icebreaker": "{{ai_first_line}}"
    }
  },
  "rateLimit": {
    "maxRequestsPerMinute": 120,
    "retryOnStatus": [
      429,
      502,
      503
    ],
    "respectRetryAfterHeader": true
  },
  "runCondition": "Boolean({{work_email}}) && {{warmerstack_dnc_precheck.isSuppressed}} === false",
  "expectedSuccessStatus": [
    201
  ],
  "note": "Server re-checks app.workspace_opt_outs (including +tag bases) inside the transaction; suppressed matches are safely stored with status='suppressed'."
}

(c) Global Suppression Push Column — POST /api/v1/suppressions

Pushes CRM or manual opt-out flags into permanent app.workspace_opt_outs and halts queued campaign recipients in the same transaction. Both HTTP 201 and 200 denote success.

clay-column-c-suppression-push.jsonJSONsuppressions:write
{
  "columnName": "warmerstack_push_dnc",
  "type": "http_api_enrichment",
  "method": "POST",
  "endpoint": "https://www.warmerstack.com/api/v1/suppressions",
  "headers": {
    "Authorization": "Bearer {{secrets.WARMERSTACK_API_KEY}}",
    "Content-Type": "application/json"
  },
  "body": {
    "email": "{{work_email}}",
    "reason": "{{dnc_reason || 'clay_do_not_contact'}}",
    "sourceChannel": "clay_dnc_sync"
  },
  "rateLimit": {
    "maxRequestsPerMinute": 120,
    "retryOnStatus": [
      429,
      502,
      503
    ],
    "respectRetryAfterHeader": true
  },
  "runCondition": "{{crm_do_not_contact}} === true && Boolean({{work_email}})",
  "expectedSuccessStatus": [
    200,
    201
  ],
  "outputMapping": {
    "insertedCount": "{{response.body.insertedCount}}",
    "alreadySuppressedCount": "{{response.body.alreadySuppressedCount}}",
    "haltedRecipientsCount": "{{response.body.haltedRecipientsCount}}"
  }
}

Required & Recommended Clay Column Mapping

Clay ColumnEndpointAPI FieldRequirementNotes & Validation
{{work_email}}GET /suppressions · POST /leads · POST /suppressionsemail (query / body)RequiredRFC 5322 email, max 254 chars. Checked against +tag suppression base.
{{full_name}}POST /api/v1/leadsnameOptionalFull contact name (max 160 chars). Do not send legacy firstName field.
{{company_name}}POST /api/v1/leadscompanyNameOptionalUsed alongside email domain to derive companyKey for colleague reply stops.
{{clay_row_id}}POST /api/v1/leadssourceIdRecommendedMaps to deterministic ID ext:<sourceId> for idempotent row re-runs (409 if owned by another workspace).
"legitimate_interest_b2b"POST /api/v1/leadslegalBasisOptionalEnum: legitimate_interest_b2b | consent | contract | unknown.
"ready"POST /api/v1/leadsstatusOptionalEnum: research | ready | hold. Suppressed contacts never leave suppressed state.
{{dnc_reason}}POST /api/v1/suppressionsreasonOptional1–120 chars, no CRLF/control chars. Defaults to api_do_not_contact.
"clay_dnc_sync"POST /api/v1/suppressionssourceChannelOptional1–80 chars audit tag written to permanent app.workspace_opt_outs.
Section 3 · Outbound Webhooks & Event Catalog

Verify every delivery before acting.

Every outbound webhook is signed with HMAC-SHA256 over the canonical string ${timestamp}.${rawBody} using your endpoint's unique whsec_ws_... signing secret. Always validate both the numeric timestamp replay window (±300s) and a constant-time digest match.

HeaderExample ValueVerification Role
X-WarmerStack-Eventreply.receivedEvent type identifier matching envelope.event.
X-WarmerStack-Delivery-Id8c2f4e91-7a3b-4c5d-9e1f-203142536475Stable UUID delivery ID across retries — use as your idempotency key.
X-WarmerStack-Timestamp1733491200Unix timestamp in seconds. Reject timestamps outside ±300s of server time.
X-WarmerStack-Signature-256sha256=4f8a2d1c9b7e...Hex HMAC-SHA256 of `${timestamp}.${rawBody}` using your whsec_ws_... secret.
verify-warmerstack-webhook.tsTypeScript±300s · constant-time
import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyWarmerStackWebhook(params: {
  rawBody: string;
  signatureHeader: string;
  timestampHeader: string;
  signingSecret: string;
  toleranceSec?: number;
  nowSec?: number;
}): boolean {
  const rawTs = params.timestampHeader.trim();
  // Strict numeric-only Unix epoch seconds (1..15 digits)
  if (!/^\d{1,15}$/.test(rawTs) || !params.signingSecret) return false;

  const ts = Number.parseInt(rawTs, 10);
  if (!Number.isSafeInteger(ts) || ts <= 0) return false;

  const now = params.nowSec ?? Math.floor(Date.now() / 1000);
  const tolerance = params.toleranceSec ?? 300;
  if (!Number.isFinite(tolerance) || tolerance < 0) return false;
  if (Math.abs(now - ts) > tolerance) return false;

  const canonical = `${ts}.${params.rawBody}`;
  const digestHex = createHmac("sha256", params.signingSecret)
    .update(canonical, "utf8")
    .digest("hex");
  const expected = `sha256=${digestHex}`;

  const receivedBuf = Buffer.from(params.signatureHeader.trim(), "utf8");
  const expectedBuf = Buffer.from(expected, "utf8");
  return receivedBuf.byteLength === expectedBuf.byteLength && timingSafeEqual(receivedBuf, expectedBuf);
}

// Next.js App Router route handler example (read unmodified raw body via request.text()):
export async function POST(request: Request) {
  const rawBody = await request.text();
  const ok = verifyWarmerStackWebhook({
    rawBody,
    signatureHeader: request.headers.get("x-warmerstack-signature-256") ?? "",
    timestampHeader: request.headers.get("x-warmerstack-timestamp") ?? "",
    signingSecret: process.env.WARMERSTACK_WEBHOOK_SECRET ?? "",
  });
  if (!ok) return new Response("Invalid webhook signature", { status: 401 });

  const envelope = JSON.parse(rawBody);
  // Deduplicate on envelope.id (X-WarmerStack-Delivery-Id) before side effects!
  return Response.json({ received: true, id: envelope.id });
}

Mirrors verifyOutboundWebhookSignature() in WarmerStack's signing engine byte-for-byte. Always read the raw body before calling JSON.parse().

Interactive Event Payload Catalog

Inspect all 9 outbound event types — 4 featured Wave 8 events plus extended/legacy aliases — with full signed envelopes.

Featured (4)Extended / Alias (5)
reply.receivedInboxFeatured Event

Prospect reply ingested into Unibox

Emitted whenever a new inbound reply is matched to a workspace sender mailbox and campaign thread. Includes AI classification, auto-reply detection, plain-text snippet, and SLA due timestamp.

Signed JSON Envelope (reply.received)JSONid · event · workspaceId · createdAt · data
{
  "id": "8c2f4e91-7a3b-4c5d-9e1f-203142536475",
  "event": "reply.received",
  "workspaceId": "ws_01j9example7f3b2a90c4d1e",
  "createdAt": "2024-12-06T13:20:00.000Z",
  "data": {
    "replyId": "rep_0196f3a0-0012-7a00-8000-000000000901",
    "threadId": "thr_0196f39f-8800-7a00-8000-000000000901",
    "campaignId": "camp_0196f200-1122-7333-8444-555555555555",
    "leadId": "ext:crm-contact-44210",
    "leadEmail": "taylor.brooks@acme-enterprise.example",
    "accountEmail": "alex@tryacmehq.example",
    "subject": "Re: Quick question about Q4 outbound infrastructure",
    "snippet": "Thanks Alex — happy to walk through our domain setup next Tuesday at 2pm UTC.",
    "classification": "interested",
    "isAutoReply": false,
    "status": "open",
    "receivedAt": "2026-12-06T14:18:04.000Z",
    "slaDueAt": "2026-12-06T18:18:04.000Z"
  }
}
Outbound Request HeadersHTTP
POST /webhooks/warmerstack HTTP/1.1
Host: hooks.yourcompany.example
User-Agent: WarmerStack-Webhooks/1.0
Content-Type: application/json
X-WarmerStack-Event: reply.received
X-WarmerStack-Delivery-Id: 8c2f4e91-7a3b-4c5d-9e1f-203142536475
X-WarmerStack-Timestamp: 1733491200
X-WarmerStack-Signature-256: sha256=4f8a2d1c9b7e6053a1d4f8c2e9b07654321fedcba9876543210abcdef1234567
POST /api/app/webhooks/test (Owner/Admin)JSONaction: "test" | "replay"
{
  "action": "test",
  "endpointId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
  "eventType": "reply.received",
  "dryRun": false
}
Section 4 · Recommended End-to-End Recipes

Minimum-privilege automation patterns.

Mint one dedicated API key per workflow with only the exact scopes required below. Revoke or rotate individual keys anytime without interrupting unrelated pipelines.

Clay HTTP APIZero wasted credits

Clay Pre-Flight DNC Gate

Screen every enriched prospect against permanent workspace and org-global opt-outs (including +tag aliases) before spending waterfall credits or upserting leads.

  1. 1GET /api/v1/suppressions?email={{work_email}} checks normalized & +tag base addresses.
  2. 2Gate downstream AI copywriter columns on response.suppressed === false.
  3. 3POST /api/v1/leads writes clean rows with deterministic sourceId: {{clay_row_id}}.

Minimum-Privilege Scopes

suppressions:readreadleads:writewrite
n8n · Make · ZapierBi-directional compliance

Global CRM Suppression Mirror

Keep HubSpot, Salesforce, and Pipedrive permanently synchronized with WarmerStack's append-only app.workspace_opt_outs table across every retry.

  1. 1Subscribe to lead.opted_out webhooks and verify X-WarmerStack-Signature-256 (±300s).
  2. 2Flag the matching contact Do-Not-Contact in your CRM keyed by X-WarmerStack-Delivery-Id.
  3. 3Mirror CRM unsubscribes back with idempotent POST /api/v1/suppressions (200/201).

Minimum-Privilege Scopes

suppressions:writewritelead.opted_out
n8n · Zapier · SlackInstant triage

Deliverability Circuit-Breaker Alerting

Turn automatic hard-bounce or complaint pauses into actionable Slack or PagerDuty alerts enriched with live mailbox tier and DNS drift checks.

  1. 1Catch mailbox.circuit_paused webhooks on your verified HTTPS receiver.
  2. 2Fetch GET /api/v1/mailboxes and GET /api/v1/domains to check dnsHealth & rblListed.
  3. 3Post an owner-assigned incident card while remaining healthy senders absorb load.

Minimum-Privilege Scopes

mailboxes:readreaddomains:readreadmailbox.circuit_paused
TypeScript · Python · CIBlock spam regressions

Pre-Launch 6-ESP CI/CD Gate

Automatically run a 6-ESP seed probe whenever outbound messaging templates change, blocking release if Primary inbox placement slips below threshold.

  1. 1POST /api/v1/placement-tests triggers a 1-credit probe with active senderMailboxIds.
  2. 2Await placement_test.completed webhook or poll GET /api/v1/placement-tests.
  3. 3Assert primary inbox rate and DMARC/SPF/DKIM authSummary before activating campaigns.

Minimum-Privilege Scopes

placement:writewriteplacement:readreadplacement_test.completed

Ready to connect your workspace?

Mint least-privilege ws_live_... keys, register HTTPS webhook endpoints, and fire signed test pings directly from Console Settings.