X-Auth-Token header as a plain value, with no Bearer prefix.
Things to know before you call:
- Every answer is one envelope.
{ success, error_code, message, data }wheresuccessis an integer:1on success,0on failure, even over a 2xx status. The plugin throws core’sApiErroronsuccess: 0and on non-JSON bodies, so a 404 HTML page never comes back as an empty result. Errors carry no email addresses or profile data: the request body is dropped and addresses are masked. - Billed calls.
verify.verifyEmailspends one credit per call;verify.startBatchVerificationand a finished chunked upload spend one credit per address when the job runs. These are not retried after a 5xx or a dropped connection, since the credit may already be spent. A 429 is retried (core, three times), because Listclean refused it before running. Checkaccount.getCreditsfirst; signup comes with 25 free credits. - Bulk verification is a job.
verify.startBatchVerificationanswerslist_id. Polllists.getList, whoselist.statusmovesSUBMITTED,INPROCESS,COMPLETED. Listclean documents no failed status for this flow. OnceCOMPLETED, download rows withlists.getListResults, choosingclean,dirtyorunknown. The rows can lag theCOMPLETEDstatus by a few seconds, so an empty download right after it is worth one more try. - Chunked CSV upload. For a file rather than a list of addresses:
uploads.startUploadwith the file name, chunk count, chunk size and the zero-basedemail_column_indexanswersupload_id(the live API refuses a start without the column, which the spec omits); send each base64 chunk withuploads.uploadChunk, numbered from 1; polluploads.getUpload(statusinprocess,successorerror, lowercase). Itsrequest_idis the list to read withlists.getList, and the list is verified and billed like a batch. Keep theupload_id: on 2026-11-26uploads.listUploadsdid not show the account’s own new uploads. - Analytics shapes come from the live API. Listclean’s spec leaves
total_summary,datewise_summaryandgraph_summarywithout inner fields; the plugin types them from the real answers and lets unknown fields through. - Deletes are permanent.
lists.deletecannot be undone and the results cannot be fetched afterwards. - Webhooks. Listclean sends none, and the plugin does not receive any.
- 16 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Listclean API key before the first call: More: API Key
pnpm corsair setup --plugin=listclean --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
Verify one addressWhat’s next
API reference
Every
listclean.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.