# FrostyVerify API & MCP

Verify email deliverability from your own code, automations, or AI agents.
One credit per email. Same categories as the dashboard.

## Authentication
Create a key at https://frostyverify.com/api-keys and send it as a Bearer token.
Keys look like `fv_live_…` and are shown only once.

    Authorization: Bearer fv_live_your_key

## Verify a single email
POST https://frostyverify.com/api/v1/verify  (synchronous, 1 credit)

    curl -X POST https://frostyverify.com/api/v1/verify \
      -H "Authorization: Bearer fv_live_your_key" \
      -H "Content-Type: application/json" \
      -d '{"email":"alice@example.com"}'

Response:

    {
      "email": "alice@example.com",
      "status": "safe",
      "category": "safe",
      "is_safe_to_send": true,
      "is_deliverable": true,
      "is_disposable": false,
      "is_role_account": false,
      "domain": "example.com",
      "credits_used": 1
    }

## Verify a list (bulk)
POST https://frostyverify.com/api/v1/verify/bulk  (async, up to 50,000 emails/task)

    curl -X POST https://frostyverify.com/api/v1/verify/bulk \
      -H "Authorization: Bearer fv_live_your_key" \
      -H "Content-Type: application/json" \
      -d '{"emails":["a@x.com","b@y.com"],"job_name":"Q3 list"}'

Returns { job_id, total_emails, status, poll_url }. Poll the job:

    curl https://frostyverify.com/api/v1/jobs/JOB_ID -H "Authorization: Bearer fv_live_your_key"

While running: { id, status:"processing", total, processed, progress, summary, download_url:null }
When done:     { id, status:"completed", progress:100, summary, download_url:"https://…" }  (signed CSV, valid 1 hour)

## Score catch-all addresses
POST https://frostyverify.com/api/v1/catchall  (async; spends CATCH-ALL credits, a separate balance)

Standard verification only flags catch-all (accept-all) domains; this estimates
which are actually deliverable.

    curl -X POST https://frostyverify.com/api/v1/catchall \
      -H "Authorization: Bearer fv_live_your_key" \
      -H "Content-Type: application/json" \
      -d '{"emails":["sam@catchalldomain.com"],"job_name":"recovered"}'

Returns { job_id, total_emails, status, poll_url }. Poll GET /jobs/JOB_ID as above.
Catch-all jobs summarise as safe / risky / invalid:

    { "id":"…", "status":"completed", "summary": { "safe": 1, "risky": 0, "invalid": 0 }, "download_url":"https://…" }

safe = likely deliverable, risky = uncertain, invalid = likely undeliverable. No tool
can confirm a mailbox on a true catch-all domain, treat this as a confidence estimate.

## Verify from Slack
Add the bot to your workspace from https://frostyverify.com/api-keys, then DM it:

    connect fv_live_your_key

Drop a CSV into that direct message and it reads the file, tells you how many
addresses it found and what the job costs, and waits for you to confirm before
spending anything. Choose "Verify" for standard verification or "Catch-all" for
deep catch-all scoring.

Before confirming, pick what you want back from the "Send me back" dropdown.
You can select SEVERAL at once and get one CSV per set, all in the same message,
each with your original columns preserved. Picking more costs nothing extra —
same job, filtered differently.

SAFE TO SEND INCLUDES ROLE ACCOUNTS. Same definition as the dashboard: a
"safe to send" file contains both the safe and role categories, so its row count
is the two added together. The summary line lists them separately so you can see
the split. Pick "Safe only - no role accounts" to exclude shared mailboxes like
info@ and admin@.

It also warns you before a low balance blocks a job, and sends a credit summary
each Monday. Commands: balance, status, connect, disconnect, mute weekly.

The bot reads direct messages only, never channels, so a list never lands
somewhere shared. Only send your API key in a DM with the bot. Revoking a key
immediately disconnects the Slack account it authorised.

## Connect to Claude Code (one command)

    claude mcp add --env FROSTYVERIFY_API_KEY=fv_live_your_key --transport stdio frostyverify -- npx -y frostyverify-mcp

## Connect to Claude Desktop / Cursor (config)

    {
      "mcpServers": {
        "frostyverify": {
          "command": "npx",
          "args": ["-y", "frostyverify-mcp"],
          "env": { "FROSTYVERIFY_API_KEY": "fv_live_your_key" }
        }
      }
    }

MCP tools: verify_email, verify_bulk, verify_catchall, get_job.

## Instant prompt (no install)
Paste this into Claude Code (or any assistant that can run curl), with your key:

    I use FrostyVerify to check email deliverability. Use their REST API for me.
    API base: https://frostyverify.com/api/v1
    Auth header: Authorization: Bearer fv_live_your_key
    - Single email: POST /verify  {"email":"..."}
    - A list/CSV:   POST /verify/bulk  {"emails":[...]}  -> returns {job_id};
      then GET /jobs/{job_id} every ~10s until status="completed", which gives a download_url to the result CSV.
    Deliverable = categories "safe" and "role". Treat catch_all, disposable, spam_trap, inbox_full, disabled and invalid as do-not-send.
    When I give you emails or a CSV and ask to verify/clean it, call this API, poll for the result, and return only the safe addresses.

## Categories
safe, role, catch_all, disposable, inbox_full, spam_trap, disabled, invalid, unknown.
"Safe to send" = safe + role. Treat the rest as risky.
