# nvoke for agents

nvoke finds companies, reads their own websites for published email addresses and checks every address with its mail server. You can do all of it through a REST API or an MCP server. This file tells you how.

- REST API base: https://api.nvoke.run/v1
- MCP server: https://api.nvoke.run/mcp
- OpenAPI 3.1: https://api.nvoke.run/v1/openapi.json
- Human docs: https://nvoke.run/docs

## 1. Get a key

If your human already uses nvoke, ask them for an API key: https://nvoke.run/app/account, API keys (or Account in nvoke Desktop). Keys start with `nvk_sk_`.

If they have no account, create one yourself. No browser needed:

```sh
curl -X POST "https://api.nvoke.run/v1/agents/signup" \
  -H "Content-Type: application/json" \
  -d '{"email":"<the human’s real email>","agentName":"<your name>"}'
```

The 201 response holds `apiKey`. Store it now; it is shown once. We email the human a link to claim the account. Unclaimed accounts are on the free plan, stop working after 7 days (403 `claim_required`) and are deleted after 30. Tell your human to claim it. If they sign in another way first, your sign-up key is revoked.

Refusals: 409 `account_exists` (ask the human for a key), 422 `email_not_accepted`, 429 `rate_limited`.

## 2. Authenticate

Send `Authorization: Bearer <apiKey>` on every request.

## 3. The loop

1. `POST /v1/searches` with one of:
   - `{"kind":"local","params":{"niche":"dentists","location":"Austin"},"limit":50}` (a trade in a place, OpenStreetMap)
   - `{"kind":"web","params":{"keyword":"design studio","country":"gb"}}` (web search)
   - `{"kind":"launches","params":{"keyword":"ai","days":7}}` (Product Hunt and Show HN)
   - `{"kind":"domains","params":{"items":["acme.com","Stripe"],"country":"us"}}` (a list you already have: domains, URLs or company names, up to maxSearchLimit from /v1/me)
   It returns the search with `status: "queued"`.
2. `GET /v1/searches/{id}` every 5 seconds until `status` is `done`, `failed` or `canceled`. Searches take a few minutes. On `failed`, read `error`.
3. `GET /v1/searches/{id}/companies?verification=valid` for companies with addresses that accept mail. Follow `nextCursor` as `cursor`.
4. Or `GET /v1/searches/{id}/export.csv?verification=valid` for a CSV, one row per email.

## Webhooks instead of polling

`POST /v1/webhooks` with `{"url":"https://...","events":["lead.ready"],"scope":"drops"}` makes nvoke POST each company with a valid address to that URL once its checks are done (`lead.ready`), and each finished search (`search.finished`). Requests are signed the Standard Webhooks way; the 201 response holds the `whsec_` secret, once. Details: https://nvoke.run/docs/webhooks

## Endpoints

- `GET /v1/me`: Who you are, your plan and this month’s usage.
- `GET /v1/plans` (public): The plan ladder.
- `GET /v1/site-profile`: Your site profile and suggested searches.
- `POST /v1/site-profile`: Read your website and plan searches.
- `PATCH /v1/site-profile`: Edit your site profile.
- `DELETE /v1/site-profile`: Delete your site profile.
- `GET /v1/ai-key`: Your own Claude key.
- `POST /v1/ai-key`: Use your own Claude key.
- `DELETE /v1/ai-key`: Stop using your own Claude key.
- `GET /v1/search-key`: Your own search key.
- `POST /v1/search-key`: Use your own search key.
- `DELETE /v1/search-key`: Stop using your own search key.
- `POST /v1/searches`: Start a search.
- `GET /v1/searches`: List your searches.
- `GET /v1/searches/:id`: Get a search.
- `POST /v1/searches/:id/more`: Search again into the same list.
- `PATCH /v1/searches/:id`: Keep a search going, check shared inboxes.
- `POST /v1/searches/:id/cancel`: Cancel a running search.
- `DELETE /v1/searches/:id`: Delete a search.
- `GET /v1/searches/:id/companies`: List companies with their emails.
- `GET /v1/searches/:id/companies/:companyId`: Get one company.
- `PATCH /v1/searches/:id/companies/:companyId`: Edit a company.
- `DELETE /v1/searches/:id/companies/:companyId`: Delete a company.
- `DELETE /v1/searches/:id/companies/:companyId/emails/:emailId`: Delete an email.
- `GET /v1/searches/:id/export.csv`: Export as CSV.
- `POST /v1/searches/:id/openers`: Draft an opener per company.
- `POST /v1/local-crawl/claim`: Claim sites to read from your own computer.
- `POST /v1/local-crawl/results`: Send what a local crawl found.
- `GET /v1/drops`: List daily drops.
- `GET /v1/drops/:id`: Get a drop.
- `POST /v1/drops`: Create a drop.
- `PATCH /v1/drops/:id`: Change a drop.
- `POST /v1/drops/:id/run`: Run a drop now.
- `DELETE /v1/drops/:id`: Delete a drop.
- `GET /v1/webhooks`: List webhooks.
- `GET /v1/webhooks/:id`: Get a webhook.
- `POST /v1/webhooks`: Create a webhook.
- `PATCH /v1/webhooks/:id`: Change a webhook.
- `DELETE /v1/webhooks/:id`: Delete a webhook.
- `POST /v1/webhooks/:id/test`: Send a test event.
- `GET /v1/webhooks/:id/deliveries`: Recent deliveries.
- `GET /v1/api-keys`: List API keys.
- `POST /v1/api-keys`: Create an API key.
- `GET /v1/api-keys/:id`: Get an API key.
- `PATCH /v1/api-keys/:id`: Rename an API key.
- `DELETE /v1/api-keys/:id`: Revoke an API key.
- `POST /v1/agents/signup` (public): Sign up as an agent.
- `POST /v1/privacy/opt-out` (public): Opt an address or domain out.
- `POST /v1/tools/verify-email` (public): Check one email address, free.
- `POST /v1/tools/extract-emails` (public): Read one website for emails, free.
- `POST /v1/tools/email-auth` (public): Check SPF, DMARC, DKIM and MX, free.
- `GET /v1/openapi.json` (public): This API as OpenAPI 3.1.
- `GET /health` (public): Health check.

## MCP

URL: https://api.nvoke.run/mcp. Streamable HTTP. Auth: the same bearer API key as a header, or OAuth through nvoke sign-in (clients that support MCP OAuth need only the URL).

Claude Code, one line:

```sh
claude mcp add --transport http nvoke https://api.nvoke.run/mcp --header "Authorization: Bearer <apiKey>"
```

Tools:

- `get_account()`: Who you are signed in as, the plan, verified emails used this month and the allowance, and the billing link a human uses to upgrade. Call this first.
- `start_search(kind, niche?, location?, keyword?, items?, country?, description?, product?, countries?, locations?, days?, limit?, checkInboxes?)`: Starts finding companies and their verified emails. kind `local`: a trade in a place, from OpenStreetMap (needs niche and location). kind `web`: a keyword, optionally in a country, from web search (needs keyword). kind `launches`: products launched recently on Product Hunt and Show HN (keyword optional). kind `domains`: contacts at companies you already know (needs items: domains, URLs or company names). kind `icp`: describe your customer in plain words and nvoke plans the searches (needs description; product and countries optional). Returns the search at once; it runs for a few minutes on our servers. Then call wait_for_search.
- `wait_for_search(searchId, timeoutSeconds?)`: Waits until the search finishes or the timeout passes, then returns it. Call again while status is `queued` or `running`. Counters grow as it runs.
- `get_search(searchId)`: One search with status and counters.
- `list_searches()`: Your searches, newest first.
- `get_leads(searchId, verification?, kind?, q?, cursor?, limit?)`: Companies a search found with their checked emails, 50 to a page. Use verification `valid` for addresses that accept mail. Pass nextCursor back as cursor for more.
- `get_company(searchId, companyId)`: One company of a search with its checked emails, as get_leads shows it.
- `update_company(searchId, companyId, name?, location?, phone?, category?, opener?)`: Changes name, location, phone or category of a company; null clears one (not the name). opener sets the user’s own first line, null removes it.
- `delete_company(searchId, companyId)`: Removes a company and its emails from a search. Valid emails already counted against the allowance stay counted. Cannot be undone.
- `delete_email(searchId, companyId, emailId)`: Removes one email address from a company. Cannot be undone.
- `export_csv(searchId, verification?, kind?, q?)`: The search as CSV text, one row per email. Same filters as get_leads.
- `draft_openers(searchId, companyIds?, redo?)`: Drafts one first line per company of a search from its own website, for companies with a valid email. Each line rests on a quote from the page (opener.quote, opener.sourceUrl); no merge tags, nothing invented. Runs in the background: read opener on get_leads a minute later, or the opener column of export_csv. Copy and export only; nvoke never sends.
- `search_more(searchId, kind, niche?, location?, keyword?, items?, country?, days?, limit?)`: Runs a finished search again with new arguments of the same kind (a wider location, another keyword, more items) and adds only the companies it does not hold yet. limit caps the new companies. Then call wait_for_search.
- `set_search_ongoing(searchId, ongoing)`: Switches ongoing on or off for a Sonar (icp) search. Ongoing searches run a fresh round every day, so new leads arrive over days; they pause while the month’s allowance is used up. Only icp searches.
- `set_check_inboxes(searchId, checkInboxes)`: Switches checking of every shared inbox (info@, sales@) on or off for a search of any kind. Off by default: then only the best one is checked at a company with no valid named person. On checks the ones the search left unchecked (inboxesSkipped on the search says how many), after the named people; only valid ones count against the allowance. Refused on a canceled search or a used up allowance. Off stops new checks and keeps what was checked.
- `cancel_search(searchId)`: Stops a running search. What it found so far stays.
- `delete_search(searchId)`: Deletes a search with its companies and emails. Cannot be undone.
- `list_webhooks()`: Your webhooks: the URL, events, scope and how the last deliveries went.
- `create_webhook(url, events?, scope?, dropId?)`: Pushes leads to a URL as they are ready instead of polling: `lead.ready` per company with a valid address, `search.finished` when a search ends. Scope `drops` or a dropId limits it to daily drops. Returns the signing secret once; give it to whoever verifies the requests.
- `update_webhook(webhookId, url?, events?, scope?, dropId?, enabled?)`: Changes the URL, events or scope of a webhook, or pauses and resumes it with enabled. dropId null widens it to the whole scope again.
- `test_webhook(webhookId)`: Sends a signed `ping` to the webhook now and returns how the server answered.
- `delete_webhook(webhookId)`: Stops the webhook at once and drops its pending deliveries.
- `list_drops()`: Your daily drops: each looks at new launches (Show HN, Launch HN, Product Hunt, YC) once a day and delivers them as a search of kind drop.
- `create_drop(name, keyword?, sources?, dailyLimit?)`: Starts a daily drop of new launches. Every word of keyword must match; left out, every launch matches. The first run looks back 7 days.
- `update_drop(dropId, name?, keyword?, sources?, dailyLimit?, enabled?)`: Changes name, keyword, sources or daily limit, or pauses and resumes it with enabled. keyword null removes the keyword.
- `run_drop(dropId)`: Moves the drop’s next run to now. A run that finds nothing new creates no search.
- `delete_drop(dropId)`: Stops the drop. The searches its runs made stay.

## Quota and money

Every feature is on every plan. Only addresses whose check comes back valid count, and one found by an `icp` (Sonar) search counts 3 times. Plans a month: 50 for $0, 1,000 for $9, 2,500 for $19, 10,000 for $49, 25,000 for $99, 60,000 for $199. When the month is used up, searches fail with `quota_exceeded` and new ones answer 403. You cannot pay; give your human `billingUrl` from `GET /v1/me`.

## Errors

Every error is `{"error":"<code>"}` with a 4xx or 5xx status.

- `unauthorized`: No valid token. Send `Authorization: Bearer <key>`.
- `claim_required`: An agent created this account more than 7 days ago and nobody claimed it. The human claims it from the emailed link.
- `invalid_request`: The body or query failed validation. `details` lists the problems.
- `not_found`: No such search, company, email, drop, key or webhook on this account.
- `quota_exceeded`: This month’s verified emails are used up. A human upgrades at `billingUrl`, sent with this error and by `GET /v1/me`.
- `source_unavailable`: Web search is paused on our side. Local and launch searches still work.
- `not_cancelable`: The search already finished.
- `search_running`: The search is still running. Wait for it to finish, or cancel it, then search again.
- `kind_mismatch`: A search runs again with its own kind. Start a new search for another kind.
- `ongoing_not_supported`: Only Sonar (`icp`) searches can be ongoing.
- `search_canceled`: The search was canceled, so it checks nothing more. Search again into it first.
- `not_claimed`: The company is not claimed for a local crawl right now. Claim it again with `POST /v1/local-crawl/claim`.
- `api_key_limit`: The account holds 20 live keys. Revoke one first.
- `account_exists`: An account with this email exists. Ask the human for an API key.
- `email_not_accepted`: Disposable inbox, an opted-out address, or a domain that receives no mail.
- `rate_limited`: Too many requests of this kind from this account or client. Try again later.
- `captcha_failed`: The Turnstile token was missing or did not pass. Solve the challenge again.
- `busy`: Too many free tool checks are running or today’s free allowance is used up. Try again later, or sign up.
- `site_unreadable`: We could not read the website: it is down, robots.txt keeps us out, it refuses our servers or it needs JavaScript. `detail` says which.
- `ai_unavailable`: Claude could not answer right now, or the account spent its monthly Claude budget. Try again later.
- `ai_key_rejected`: Anthropic refused the API key. Check it in the Claude Console.
- `ai_model_unknown`: Anthropic does not offer that model to this key. `detail` names it.
- `search_key_rejected`: Serper or Brave refused the key, or its plan has no credit left. `detail` says what it answered.
- `signup_unavailable`: Agent sign-up is switched off right now.
- `too_many_drops`: The account holds 20 drops. Delete one first.
- `too_many_webhooks`: The account holds 10 webhooks. Delete one first.
- `webhook_url_not_allowed`: Webhook URLs must be HTTPS on a public address that resolves.
- `database_unavailable`: Our database is unreachable. Retry with backoff.

Retry 5xx and `database_unavailable` with backoff. Do not retry 4xx unchanged.

## Rules

nvoke is a research tool: it finds and verifies leads and never sends email. In the EU, marketing email to these addresses usually needs prior consent. Do not send bulk email to them on the user's behalf.

nvoke never sends email. Respect opt-outs: https://nvoke.run/opt-out.
