Skip to content

API reference

Sievana API

A small REST API for verifying single addresses and bulk lists. JSON in, JSON out. Create a key in your dashboard and you can make your first call in under a minute.

Introduction

All requests go to https://api.sievana.com. Request and response bodies are JSON unless noted. Timestamps are RFC 3339 in UTC.

curl -X POST https://api.sievana.com/v1/verify \
  -H "Authorization: Bearer $SIEVANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'

Authentication

Send your API key as a bearer token. Keys start with sv_live_, are shown once when created, and are stored hashed on our side, so keep a copy somewhere safe.

Authorization: Bearer sv_live_xxxxxxxxxxxxxxxxxxxxxxxx

API keys can verify addresses, work with lists and read GET /v1/me to check your balance. They can't manage other keys, billing or account settings. If a key leaks, revoke it from the dashboard and create a new one.

Errors

Errors use conventional HTTP status codes and always share one shape:

{
  "error": {
    "code": "insufficient_credits",
    "message": "You need 1,200 credits but have 300."
  }
}
  • bad_request400

    The request body or parameters are invalid.

  • unauthorized401

    Missing or invalid API key.

  • forbidden403

    Authenticated, but not allowed (for example, an API key calling an account route).

  • not_found404

    The resource doesn't exist or isn't yours.

  • conflict409

    The resource is in a state that doesn't allow this.

  • insufficient_credits402

    Your balance is too low. Nothing was charged or queued.

  • account_on_hold403

    Verification is paused after a payment reversal. Contact support.

  • payload_too_large413

    File exceeds 50 MB or 1,000,000 rows.

  • method_not_allowed405

    Wrong HTTP method for this route. See the Allow header.

  • unsupported_media_type415

    JSON bodies need Content-Type: application/json.

  • request_timeout408

    An upload stalled or arrived too slowly.

  • rate_limited429

    Too many requests. Wait the number of seconds in Retry-After.

  • internal500

    Something broke on our side. Safe to retry.

  • bad_gateway502

    The payment provider failed. Try again shortly.

  • service_unavailable503

    A dependency is temporarily unavailable.

Verify an address

POST/v1/verify
Synchronous

Checks one address end to end. Most answers arrive in about a second, but slow mail servers can take up to 60 seconds, so set a generous client timeout. One credit is charged unless the result is unknown.

  • emailstring

    The address to verify.

For quick integrations, GET /v1/verify?email=… works the same way with an API key. Up to 5 checks run at once per account and 10 requests per second; beyond that you get a 429. Unknown results are free for the first 50 single checks each day (UTC); after that they cost a credit like any other result. The charged field tells you whether a check was billed.

Response

{
  "email": "[email protected]",
  "normalized": "[email protected]",
  "result": "ok",
  "reason": "accepted",
  "role": false,
  "free": false,
  "disposable": false,
  "catch_all": false,
  "suggestion": "",
  "mx_host": "mx1.harborline.io",
  "smtp_code": 250,
  "smtp_text": "2.1.5 OK",
  "duration_ms": 812,
  "checked_at": "2026-11-25T10:42:07Z",
  "credits_remaining": 9481
}
  • resultenum

    ok, catch_all, unknown, invalid or disposable. See the result reference.

  • reasonstring

    Machine-readable reason for the result.

  • roleboolean

    Shared inbox such as info@ or sales@.

  • freeboolean

    Consumer mailbox provider such as Gmail or Outlook.

  • disposableboolean

    Temporary inbox provider.

  • catch_allboolean

    The domain accepts mail for any address.

  • suggestionstring

    Likely intended address when we spot a typo, otherwise empty.

  • mx_host, smtp_code, smtp_textmixed

    The mail server that answered and its last reply. May be omitted when no server was contacted.

  • chargedboolean

    Whether this check cost a credit.

  • credits_remaininginteger

    Your balance after this check.

Bulk lists

POST/v1/lists
multipart/form-data or JSON

Upload a CSV or TXT file (up to 50 MB / 1,000,000 rows; comma, semicolon, tab or pipe delimited; header row optional). We parse it, remove duplicate addresses (case-insensitive), reserve one credit per unique address and queue the job. Cells are cleaned first (Ann <[email protected]> and mailto: links become the bare address; a cell with several addresses uses the first). Rows without an address are kept for the download but skipped and not charged. If your balance is too low you get a 402 and nothing is queued. Up to 2 uploads can run at once per account.

  • filefile

    CSV or TXT file.

  • namestring

    Optional display name. Defaults to the file name.

  • email_columnstring | int

    Header name or 0-based column index. Auto-detected when omitted.

  • emailsstring[]

    JSON alternative to file: up to 100,000 addresses.

# Upload a CSV (the email column is detected automatically)
curl -X POST https://api.sievana.com/v1/lists \
  -H "Authorization: Bearer $SIEVANA_KEY" \
  -F "[email protected]" \
  -F "name=November leads"

# Or send addresses as JSON (up to 100,000)
curl -X POST https://api.sievana.com/v1/lists \
  -H "Authorization: Bearer $SIEVANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Webinar signups", "emails": ["[email protected]", "[email protected]"]}'

The list object

{
  "id": "4f0b6c1e-…",
  "name": "leads-november.csv",
  "status": "processing",
  "total_rows": 5230,
  "unique_emails": 5100,
  "duplicates": 130,
  "skipped_rows": 0,
  "processed": 2210,
  "progress": 0.433,
  "counts": { "ok": 1580, "catch_all": 301, "unknown": 47, "invalid": 262, "disposable": 20 },
  "credits_reserved": 5100,
  "credits_charged": 0,
  "credits_refunded": 0,
  "created_at": "2026-11-25T09:12:44Z",
  "started_at": "2026-11-25T09:12:46Z",
  "finished_at": null,
  "error": null
}

status moves through queued → processing → completed, or cancelled. progress is a fraction from 0 to 1. total_rows = unique_emails + duplicates + skipped_rows.

GET/v1/lists?limit=20&cursor=
Newest first
GET/v1/lists/{id}
One list
POST/v1/lists/{id}/cancel
Stop and refund the rest
DELETE/v1/lists/{id}
Delete list and results

Paginated endpoints return { "items": [...], "next_cursor": "…" }. Pass next_cursor back as cursor until it is null.

Results & downloads

GET/v1/lists/{id}/results?result=ok&limit=100
Paginated JSON rows
GET/v1/lists/{id}/download?results=ok,catch_all&format=csv
Streamed CSV

The CSV contains your original columns plus result, reason, role, free, disposable, catch_all and suggestion. results takes a comma-separated list of result values; omit it for everything. Every original row is written in order, duplicates included. Downloads are available once a list is completed, or cancelled (partial results); before that you get a 409. Result rows have a status of pending, processing, done or cancelled, and their verdict fields are null until done.

# Check progress
curl https://api.sievana.com/v1/lists/$LIST_ID -H "Authorization: Bearer $SIEVANA_KEY"

# Download only the addresses that are safe to send (409 until the list finishes)
curl "https://api.sievana.com/v1/lists/$LIST_ID/download?results=ok&format=csv" \
  -H "Authorization: Bearer $SIEVANA_KEY" -o safe-to-send.csv

Credits & refunds

  • One credit per unique address. Duplicates in a list are free.
  • Unknown list results are always free; the refund happens when the list finishes: credits_charged = unique_emails − unknown.
  • Unknown single checks are free for the first 50 each day, then charged.
  • Cancelling a list refunds every credit reserved for addresses that weren't checked.
  • Credits never expire.

Webhooks

Register one HTTPS endpoint in the dashboard and we'll call it when a list finishes. Private and loopback addresses are rejected.

POST https://your-app.com/hooks/sievana
Sievana-Signature: t=1764063164,v1=5d8f0c…
Sievana-Event-Id: evt_2b9f…
Sievana-Event-Type: list.completed

{
  "id": "evt_2b9f…",
  "type": "list.completed",
  "created_at": "2026-11-25T09:31:02Z",
  "list": { "id": "4f0b6c1e-…", "status": "completed", … }
}

The signature is an HMAC-SHA256 of <t>.<raw body> using your webhook secret, hex encoded. Verify it and reject old timestamps to block replays. Use id to dedupe, since a delivery can occasionally repeat. Any 2xx counts as success; redirects aren't followed. Failures are retried 5 times (after 30s, 2m, 10m, 1h and 6h).

import crypto from "node:crypto";

// rawBody must be the exact bytes we sent, before JSON parsing.
export function verifySignature(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${parts.t}.${rawBody}`)
    .digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Result reference

Validok

Safe to send. The mailbox exists and accepts mail. Send with confidence.

Catch-allcatch_all

Send with care. The domain accepts every address, so the mailbox can't be confirmed. Usually deliverable, but riskier than a confirmed address.

Unknownunknown

No answer, no charge. The mail server didn't give a definite answer (timeouts, greylisting, temporary blocks). Unknowns in lists are always free, and single checks include 50 free unknowns a day.

Invalidinvalid

Will bounce. The address doesn't exist or can't receive mail. Remove it before you send.

Disposabledisposable

Throwaway inbox. A temporary inbox provider. These addresses vanish quickly and rarely belong to real buyers.

Reasons

  • acceptedok

    The mail server confirmed this mailbox exists and accepts mail.

  • accept_allcatch_all

    The server accepted a made-up test address too, so it accepts everything. We can't tell if this specific mailbox is real.

  • invalid_syntaxinvalid

    This isn't a properly formatted email address.

  • no_domaininvalid

    The domain doesn't exist.

  • no_mxinvalid

    The domain has no mail servers configured, so it can't receive email.

  • null_mxinvalid

    The domain explicitly says it does not accept email.

  • mailbox_not_foundinvalid

    The mail server says this mailbox doesn't exist.

  • mailbox_disabledinvalid

    The mailbox exists but has been disabled or deactivated.

  • mailbox_fullinvalid

    The mailbox is over its storage quota and is rejecting new mail.

  • disposable_domaindisposable

    The domain belongs to a known throwaway inbox provider.

  • greylistedunknown

    The server asked us to try again later and kept deferring, so we couldn't get an answer.

  • smtp_timeoutunknown

    The mail server was too slow to respond.

  • smtp_connect_failedunknown

    We couldn't reach any of the domain's mail servers.

  • blockedunknown

    The mail server refused to talk to us (a policy block, not a problem with the mailbox).

  • temporary_errorunknown

    The mail server reported a temporary error.

  • protocol_errorunknown

    The mail server sent an unexpected or malformed reply.

  • unverifiable_hostunknown

    This provider answers "yes" for every address without being a true catch-all, so mailboxes can't be confirmed.