API reference/bulk

Download a bulk job's results as CSV

GET/api/v1/email/bulk/{jobId}/results

authentication
Secret API key as a bearer token
billing
Free.

Streams the run's result file: a finished job's full results, or the partial file a mid-run cancellation kept. The file starts with the input's own columns (for an API list, a single email column; for a dashboard upload, every column of the uploaded file), followed by verified_email and the verdict fields, one row per input row in the original order:

verified_email, deliverable, reason, risk_score, risk_level, normalized_email, is_alias, is_gibberish, disposable, role, free_provider, mx_found, mx_implicit, mx_provider, has_spf, dmarc_policy, domain_registered_at, domain_age_days, smtp_checked, smtp_checked_at, mailbox_exists, catch_all, smtp_reason, mailbox_confidence, did_you_mean, credits_used, cache_hit, suppressed

Add ?variant=deliverable (or risky, undeliverable) to download only those rows. A job still running answers 409 RESULTS_NOT_READY; a job cancelled before any address was processed answers 409 JOB_CANCELLED.

Parameters

name in type description
jobIdrequiredpathintegerThe id returned at creation.
variantquerystringWhich rows to include. One of: full, deliverable, risky, undeliverable. Default: full.

Example request

curl https://spaw.co/api/v1/email/bulk/512/results \
  -H "Authorization: Bearer sk_live_…"
const response = await fetch('https://spaw.co/api/v1/email/bulk/512/results', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer sk_live_…',
  },
});
const result = await response.json();
import requests

response = requests.get(
    'https://spaw.co/api/v1/email/bulk/512/results',
    headers={'Authorization': 'Bearer sk_live_…'},
)
result = response.json()
$ch = curl_init('https://spaw.co/api/v1/email/bulk/512/results');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer sk_live_…'],
]);
$result = json_decode(curl_exec($ch), true);

Responses

200The CSV, as an attachment named `spaw-bulk-{jobId}.csv` (with `-{variant}` appended for a filtered download).

email,verified_email,deliverable,reason,risk_score,risk_level,normalized_email,is_alias,is_gibberish,disposable,role,free_provider,mx_found,mx_implicit,mx_provider,has_spf,dmarc_policy,domain_registered_at,domain_age_days,smtp_checked,smtp_checked_at,mailbox_exists,catch_all,smtp_reason,mailbox_confidence,did_you_mean,credits_used,cache_hit,suppressed
[email protected],[email protected],deliverable,,0,low,[email protected],0,0,0,0,0,1,0,google,1,reject,1998-03-12,10402,1,2026-09-03T10:12:44+00:00,1,0,,,,1,0,0

401The key is missing, malformed, or revoked.

{
    "success": false,
    "error": {
        "code": "UNAUTHENTICATED",
        "message": "Provide a valid API key as a bearer token.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}

404No such record on this account.

{
    "message": "Not Found"
}

409The results are not available yet (`RESULTS_NOT_READY`) or never will be (`JOB_CANCELLED`).

{
    "success": false,
    "error": {
        "code": "RESULTS_NOT_READY",
        "message": "The job has not finished yet. Poll its status until it reports completed.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}

422The `variant` query parameter is not one of the allowed values.

{
    "success": false,
    "error": {
        "code": "VALIDATION_FAILED",
        "message": "variant must be one of: full, deliverable, risky, undeliverable.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}

429Over 5 requests per second for the key. Retry after the limit resets.

{
    "success": false,
    "error": {
        "code": "RATE_LIMITED",
        "message": "Too many requests. Retry after the limit resets.",
        "request_id": "req_01m1kgdm4xngzmbmff68g94w0c"
    }
}

Error codes

Failures answer { success: false, error: { code, message, request_id } }. Each code has its own page.

markdown version·openapi.json