# Precleared Precleared gives AI agents a legality verdict before they act, with the rule quoted and a signed receipt. Contact Check: a per-address verdict on whether a cold marketing email may be sent. UK (PECR), US (CAN-SPAM), Canada (CASL), Germany (UWG), France (CPCE), Australia (Spam Act 2003), Ireland (S.I. 336/2011), the Netherlands (Telecommunicatiewet), Spain (LSSI), Italy (Privacy Code), Latvia (Information Society Services Law), the United Arab Emirates (PDPL), Egypt (Personal Data Protection Law) and Qatar (Personal Data Privacy Protection Law). Decision support with sources, not legal advice. Weekly accuracy results: https://precleared.dev/accuracy ## API POST https://precleared.dev/api/v1/check body: {"recipient_email": "...", "sender_country": "GB", "address_source": "published"} POST https://precleared.dev/api/v1/gate takes the same body and keys (email is an alias for recipient_email): 200 gate pass only for ok_to_email; 422 gate hold for consent_needed, blocked or unknown; other errors keep their status and mean hold. Full check body, same allowance, free-answer rules and receipt; one check per charged call. Integration guide for tool builders: https://precleared.dev/docs/integrate (contract, fields, errors, caching, ?src= tags) sender_country: any covered country (GB, US, CA, DE, FR, AU, IE, NL, ES, IT, LV, AE, EG or QA) (where the sending business is based) Optional: "default_recipient_country": "US" is used only when the country can't be worked out from the address, company records or the company's website. recipient_country always wins. Optional: "company_name" and "recipient_name" (for example from your CRM) help find a UK company at Companies House. A company is only used when other evidence links it to the recipient, such as an officer matching the recipient or the website naming it. The recipient name is not stored. When a site shows no company number, Precleared searches Companies House by name. Website or named-officer evidence gives legal_form_source "companies_house_search" with one step lower confidence; a distinctive domain stem can also confirm a supplied or website-derived company name as described below. legal_form_source "public_sector_domain": the recipient's domain is a UK public-sector one (.gov.uk, .ac.uk, .sch.uk, .police.uk and similar). legal_form_source "companies_house_name_domain": an active company matching the supplied or website-derived name is confirmed by a distinctive match in the recipient domain stem, with medium confidence. Exact matches must be unique; fuzzy names require at least 0.6 token overlap and the same domain guard. Generic words alone and fewer than five matched letters do not confirm a company. legal_form_source "companies_house_stem_area" means no name was given or printed, but the only active company whose name is the domain stem (at least 8 letters, with a distinctive word) has its registered office in the same postcode area as an address printed on the website, with medium confidence. Dormant companies, common-word names and sites that print a company number never use it. A name-plus-domain match whose name has only one distinctive word also needs the registered office in a postcode area printed on the website. Scottish partnerships are corporate subscribers under PECR. When the recipient's address or registered office is in Scotland, held reasons say "sole trader", not "sole trader or partnership". legal_form_source "unconfirmed" means one exact active company matches the domain but the website could not be read to confirm it runs the site. The UK verdict is unknown. Pass company_number only if the website or your lead data confirms the company named in the notes; otherwise check again later. Optional header: Authorization: Bearer pc_live_... (or X-API-Key: pc_live_...) Response: verdict (ok_to_email | consent_needed | blocked | unknown), confidence, reasons with source, footer_text (what the email's footer must include), next_step, facts, receipt. GB held answers add held_because {case, evidence}; possible_company {name, number} is an unconfirmed suggestion and never establishes the recipient's country. Every answer includes charged (true or false); free re-checks include free_recheck_of (the earlier receipt id). Canadian senders must meet the recipient's rules and the existing CASL implied-consent rule: a conspicuously published address with no refusal statement and a pitch relevant to the recipient's role. Keep evidence of publication. footer_text adds CASL identification, contact and unsubscribe requirements. Agents should pass operator_message from a limit reply to the person who runs them. The keyless 429 daily_limit reply includes create_key: {"method":"POST","url":"https://precleared.dev/api/v1/keys","body":{"email":""}}. The 201 reply returns the new key once, so save it. New keys get 14 days at 100 checks a day, starting with the first check; limits are 3 keys per email and 5 new keys per network in a rolling 24 hours. GET https://precleared.dev/api/v1/receipt?id=cc_rcpt_... returns a signed receipt. Public receipt page: https://precleared.dev/r/ (masked address, verdict, rule, signature). for_your_report: every check answer adds a sentence under 240 characters with the masked address, verdict, first reason and public receipt link for the agent's report. summary_today: GET https://precleared.dev/api/v1/key counts this key's checks since midnight UK time (checked, ok_to_email, consent_needed, blocked, unknown) and adds a report sentence, without spending a check or starting the trial. GET https://precleared.dev/api/v1/public-key and /api/v1/rules. OpenAPI: https://precleared.dev/openapi.json ## MCP URL: https://precleared.dev/mcp (streamable HTTP). Tools: contact_check, verify_receipt. ## A2A A2A (Agent2Agent): agent card at https://precleared.dev/.well-known/agent-card.json. POST https://precleared.dev/a2a (JSON-RPC 2.0) with method SendMessage and the header A2A-Version: 1.0, or message/send for A2A 0.3. Send one recipient per message, as text ("Can I send a cold email to jane@acme.co.uk? I found it on their website.") or as a data part with the same fields as /api/v1/check. The reply has a text part and a data part with the same JSON as the REST API. Same allowance and keys as the REST API. ## Agent payments When a key is out of checks, the 402 payment_required reply keeps buy_url, starter_url (when eligible), plan_url (when available) and packs. When agent payments are on, it also includes agent_payment: {protocol: "mpp", method: "stripe", how, starter_url (only while the starter is available), pack_url}. 1. POST to agent_payment.pack_url (£39 for 2,000 checks) or agent_payment.starter_url (£9 for 300 checks, a key's first purchase only). 2. The reply is HTTP 402 with a WWW-Authenticate: Payment challenge for the GBP amount. Its JSON has {error: "payment_required", protocol: "mpp", pack: {id, price_gbp, checks}, human_checkout_url, message}. 3. The agent's wallet pays, then the agent repeats the same POST with Authorization: Payment . 4. The checks are added to the key at once. The reply is HTTP 200 with {ok, credited, credits, key_prefix, payment_intent} and a Payment-Receipt header. The wallet must support Stripe Machine Payments Protocol challenges, for example Link's agent wallet where available. A credential works once. Reusing it returns 402 payment_already_used with a fresh challenge; nothing new is charged. If crediting fails and no credit is recorded, an automatic refund is attempted. If the credit status cannot be confirmed or the refund fails, follow the error message and do not pay again. Other replies: 409 monthly_needs_a_person with human_checkout_url (the £15 monthly plan needs a person in a browser); 409 starter_not_available with standard_url (use the £39 pack); 409 agent_payments_disabled with human_checkout_url (agent payments are switched off). An agent can always give the pay URL to its operator. Opening it in a browser goes to Stripe Checkout as before. Buy a key with checks: POST https://precleared.dev/api/v1/agent/keys with JSON {pack: "starter" or "standard" (default "starter"), email (required), name, use_case}. With no credential the reply is HTTP 402 with a WWW-Authenticate: Payment challenge (stripe, charge, 900 or 3900, gbp), Cache-Control: no-store, and the same JSON as above with human_checkout_url pointing at https://precleared.dev/get-key; nothing is created. Repeat the POST with Authorization: Payment and the reply is HTTP 201 {key, key_prefix, credits, pack} with a Payment-Receipt header. The key is shown once. Key limits (3 per email, 5 per network a day) are checked before any charge. Retrying with the same credential returns already_created with the key_prefix and never makes a second key or charges twice. ## Integrations Quickly pre-send hook: GET https://precleared.dev/api/v1/hooks/pre-send with an API key returns a URL, derived secret and five settings. POST to /api/v1/hooks/pre-send/ with Quickly timestamp/signature headers, or /api/v1/hooks/pre-send without a key, returns HTTP 200 allow, hold or deny; allowance exhaustion and temporary errors hold. Guide: https://precleared.dev/docs/quickly Campaign gate: https://precleared.dev/gate checks every lead in a paused Instantly, Smartlead or Woodpecker campaign with your Precleared key. Only ok_to_email clears. Block mode adds Instantly and Woodpecker holds to account-wide blocklists; Smartlead holds pause the individual campaign lead. Report mode writes nothing. Never sends, starts a campaign or unblocks. One check per lead, with the usual free-answer and free re-check rules. Guide: https://precleared.dev/docs/campaign-gate HubSpot: Precleared HubSpot app (early access, not yet listed in the HubSpot Marketplace), with a contact card and the workflow action "Check cold email permission". New portal keys get 14 days at 100 checks a day, starting with the first check, then 25 free a day or the £15 monthly 100-a-day plan, followed by prepaid packs. Add the card from Settings, Integrations, Connected apps, Precleared, App cards, Manage locations, or from contact Customize as an alternative. Guide: https://precleared.dev/docs/hubspot. Install: https://precleared.dev/hubspot/install Sellbird (formerly Harvey; open-source AI sales agent, github.com/ethanplusai/sellbird): built-in optional check. Set compliance.precleared.enabled: true in sellbird.yaml, or sellbird.local.yaml if you trained Sellbird (that file wins), or run sellbird setup (or harvey setup on older installs). Run sellbird precleared-key, or say yes when sellbird setup offers a key; it saves PRECLEARED_API_KEY in .env for you. Or get a key at https://precleared.dev/get-key and add it yourself. Guide: https://precleared.dev/docs/sellbird Installs from before the rename use harvey.yaml instead. Apify Store: Cold Email Compliance Check Actor, https://apify.com/gabe_ao/cold-email-compliance-check. Paste addresses, get one row per address. USD 0.03 per address checked, billed by Apify; or paste your own Precleared key to use your allowance and packs. Marketing Skills: listed in the tools registry of the open-source library of marketing skills for Claude Code and other AI agents, https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/precleared.md. Dify Marketplace: Precleared plugin, https://marketplace.dify.ai/plugin/precleared/precleared. Tools: Check cold email compliance (outputs verdict, ok_to_send, rule, rule_source, next_step, footer_text, receipt_id, error) and Get a receipt. Needs a free Precleared key (https://precleared.dev/get-key) because Dify calls from shared servers. Hermes Agent (open-source agent by Nous Research): Precleared plugin in the Hermes plugin catalog, https://hermes-agent.nousresearch.com/docs/plugins/precleared. Install: hermes plugins install precleared --enable. Before Hermes sends an email (send tools, its himalaya, agentmail and Google Workspace email skills, or an email API call), each new recipient is checked; anything not ok_to_email goes to Hermes's approval prompt (or is refused in block mode) with the rule, its source and a signed receipt. Adds precleared_check and precleared_verify_receipt tools and a cold-email-check skill. The key is optional (PRECLEARED_API_KEY); without one, checks use the free allowance. n8n template: https://n8n.io/workflows/20949-check-cold-email-compliance-and-draft-gmail-messages-with-precleared/ (checks each address before drafting the email in Gmail). Vercel AI SDK: npm install precleared, tools from precleared/ai-sdk. Guide: https://precleared.dev/docs/ai-sdk LangChain and LangGraph (Python and TypeScript): pip install "precleared[langchain]" or npm install precleared. Guide: https://precleared.dev/docs/langchain Lindy: connect Precleared as an MCP server over Streamable HTTP. Use a free key for your own allowance on Lindy's shared servers. Guide: https://precleared.dev/docs/lindy Microsoft Copilot Studio: add Precleared through the Model Context Protocol onboarding wizard, using Streamable HTTP. Use a free key with the X-API-Key header for your own allowance on Microsoft's shared servers. Guide: https://precleared.dev/docs/copilot-studio ## Recipes Recipes, check every lead before it reaches your sequencer: https://precleared.dev/docs/recipes Check leads in Clay before they reach your sequencer: https://precleared.dev/docs/recipes/clay Check leads in Make before they reach your sequencer: https://precleared.dev/docs/recipes/make Check leads in Zapier before they reach your sequencer: https://precleared.dev/docs/recipes/zapier Check leads in n8n before they reach your sequencer: https://precleared.dev/docs/recipes/n8n Check leads in Amplemarket before the first email: https://precleared.dev/docs/recipes/amplemarket Use Precleared with your outbound tool's MCP server (16 tools): https://precleared.dev/docs/recipes/mcp Precleared with lemlist's MCP server: https://precleared.dev/docs/recipes/mcp/lemlist Precleared with Salesforge's MCP server: https://precleared.dev/docs/recipes/mcp/salesforge Precleared with Woodpecker's MCP server: https://precleared.dev/docs/recipes/mcp/woodpecker Precleared with La Growth Machine's MCP server: https://precleared.dev/docs/recipes/mcp/la-growth-machine Precleared with Waalaxy's MCP server: https://precleared.dev/docs/recipes/mcp/waalaxy Precleared with Reply.io's MCP server: https://precleared.dev/docs/recipes/mcp/reply-io Precleared with Snov.io's MCP server: https://precleared.dev/docs/recipes/mcp/snov-io Precleared with Amplemarket's MCP server: https://precleared.dev/docs/recipes/mcp/amplemarket Precleared with Artisan's MCP server: https://precleared.dev/docs/recipes/mcp/artisan Precleared with Unify's MCP server: https://precleared.dev/docs/recipes/mcp/unify Precleared with Clay's MCP server: https://precleared.dev/docs/recipes/mcp/clay Precleared with Needle's MCP server: https://precleared.dev/docs/recipes/mcp/needle Precleared with Hunter's MCP server: https://precleared.dev/docs/recipes/mcp/hunter Precleared with Anysite's MCP server: https://precleared.dev/docs/recipes/mcp/anysite Precleared with PhantomBuster's MCP server: https://precleared.dev/docs/recipes/mcp/phantombuster Precleared with Bitscale's MCP server: https://precleared.dev/docs/recipes/mcp/bitscale Check leads before they enter Instantly: https://precleared.dev/docs/instantly Check leads before they enter Smartlead: https://precleared.dev/docs/smartlead Check leads before they enter lemlist: https://precleared.dev/docs/lemlist Check leads before they enter an Apollo sequence: https://precleared.dev/docs/apollo ## Guides and FAQ Cold email law by country, one guide per jurisdiction with every rule quoted and sourced: https://precleared.dev/guides Is cold email legal under GDPR? How GDPR and each country's ePrivacy law fit together: https://precleared.dev/guides/cold-email-law/gdpr UK (PECR and UK GDPR): https://precleared.dev/guides/cold-email-law/united-kingdom US (CAN-SPAM): https://precleared.dev/guides/cold-email-law/united-states Canada (CASL): https://precleared.dev/guides/cold-email-law/canada Germany (UWG section 7): https://precleared.dev/guides/cold-email-law/germany France (CPCE and CNIL guidance): https://precleared.dev/guides/cold-email-law/france Australia (Spam Act 2003): https://precleared.dev/guides/cold-email-law/australia Ireland (S.I. No. 336/2011): https://precleared.dev/guides/cold-email-law/ireland Netherlands (Telecommunicatiewet article 11.7): https://precleared.dev/guides/cold-email-law/netherlands Spain (LSSI): https://precleared.dev/guides/cold-email-law/spain Italy (Privacy Code article 130): https://precleared.dev/guides/cold-email-law/italy Latvia (Information Society Services Law): https://precleared.dev/guides/cold-email-law/latvia United Arab Emirates (PDPL): https://precleared.dev/guides/cold-email-law/united-arab-emirates Egypt (Personal Data Protection Law): https://precleared.dev/guides/cold-email-law/egypt Qatar (Personal Data Privacy Protection Law): https://precleared.dev/guides/cold-email-law/qatar Cold email laws by country, one table for all fourteen countries: https://precleared.dev/guides/cold-email-laws-by-country Can I cold email sole traders?: https://precleared.dev/guides/cold-email-sole-traders Can I cold email info@ and other generic company addresses?: https://precleared.dev/guides/cold-email-generic-addresses What must a cold email footer include?: https://precleared.dev/guides/cold-email-footer-requirements Can I use a bought or scraped email list for cold email?: https://precleared.dev/guides/bought-and-scraped-email-lists Can I email existing customers without consent?: https://precleared.dev/guides/existing-customer-exception Is B2B cold email legal in Europe?: https://precleared.dev/guides/b2b-cold-email-europe FAQ, cold email law and pricing questions: https://precleared.dev/faq ## Pricing Answers where the recipient's country couldn't be found aren't charged. If an answer asks for a detail, checking the same address again within a day with that detail is free. These free answers share a cap of 50 a day per key, or per IP without a key, then count as normal. One free re-check per address follows a charged unknown or consent_needed answer when recipient_country, company_name or company_number is added or changed within 24 hours, using the same key or keyless channel. An uncharged earlier answer does not qualify. Receipts are still issued. Apify partner billing is unchanged. Keys with no checks get 14 days at 100 checks a day, starting with the first check, no card needed. Monthly plan: GBP 15 a month for 100 checks a day, unused checks do not roll over. Cancel at https://precleared.dev/manage; allowance continues to the end of the paid month. Packs are used after the day's free, trial or plan allowance. Active and past_due plans keep their allowance, canceled plans do not; the largest eligible allowance applies, never below the channel's keyless limit. Keyed 402 replies and low/heads-up notices add plan_url, a tracked /checkout?t=&p=monthly&src= link, unless the key already has an active plan. While a trial runs, usage.trial_ends_at is its ISO expiry. In its last 3 days usage.notice names the end date and monthly option. HubSpot status/out-of-checks responses include plan_url and workflow not_checked next_step includes it. Key status without spending a check: GET https://precleared.dev/api/v1/key with the key as a bearer token. This does not start the trial. Before the first check, trial_status is not_started, trial_starts is first_check, and 100 checks are available for the first day. After the first check, trial_ends_at gives the real end. Optional auto top-up saves a card at Checkout and buys another GBP 39 pack at 200 credits or below, within a monthly cap (default 2 packs); manage it at https://precleared.dev/manage. No key: 100 checks a day over MCP or 10 over the REST API, shared by everyone on the same IP address. Free key: your own 100 a day over MCP or 25 over the REST API. Packs: GBP 9 for 300 checks (a key's first purchase) or GBP 39 for 2,000 checks, prepaid, never expire. Packs stack on the same key. When a pack runs out, free daily checks continue. After those, a check returns 402 payment_required with buy_url, which opens checkout for that key. When agent payments are on, agents also get agent_payment; see Agent payments above. When a check leaves 1 to 200 pack checks, usage has low_balance: true, top_up_url and notice. Buy page: https://precleared.dev/buy Docs: https://precleared.dev/docs