Precleared Gate API
The Gate API from Precleared — 1 operation(s) for gate.
The Gate API from Precleared — 1 operation(s) for gate.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/precleared-dev:precleared-dev-gate-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Precleared Gate API
version: 1.0.0
description: 'Per-address verdicts on cold marketing email, with the rule quoted and a signed receipt. Covers the UK, US, Canada, Germany, France, Australia, Ireland, the Netherlands, Spain, Italy, Latvia, the United Arab Emirates, Egypt and Qatar: UK PECR and GDPR, US CAN-SPAM, Canadian CASL, German UWG, French CPCE, Australia''s Spam Act, Ireland''s ePrivacy Regulations, the Dutch Telecommunicatiewet, Spain''s LSSI, Italy''s Privacy Code, Latvia''s Information Society Services Law, the UAE''s PDPL, Egypt''s Personal Data Protection Law and Qatar''s Personal Data Privacy Protection Law. Decision support with sources, not legal advice. Packs: £9 for 300 checks (a key''s first purchase) or £39 for 2,000 checks. Auto top-up always buys the £39 pack. Every new key, including HubSpot portals, gets 14 days at 100 checks a day, starting with the first check. Monthly plan: £15 for 100 checks a day. Unused daily checks do not roll over. Packs are used after the largest eligible free, trial or active/past_due plan allowance, never below the channel minimum. Cancel at /manage; the plan runs to the paid period end.'
servers:
- url: https://precleared.dev
tags:
- name: Gate
paths:
/api/v1/gate:
post:
summary: Gate one address before sending
security:
- {}
- bearer: []
description: A thin wrapper over /api/v1/check. Same allowances, rate limits, receipts, pay links and usage notices; counts as one check. Only ok_to_email passes. Treat every other status as hold. Supports Bearer, X-API-Key or keyless calls. email is an alias only when recipient_email is absent.
requestBody:
required: true
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/CheckRequest'
- type: object
properties:
email:
type: string
description: Alias for recipient_email when that field is absent.
responses:
'200':
description: 'Send: ok_to_email, with the full check result. Follow its footer requirements.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/CheckResponse'
- type: object
required:
- gate
properties:
gate:
type: string
const: pass
'400':
description: Invalid request or invalid JSON. Treat as hold.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- gate
properties:
gate:
type: string
const: error
'401':
description: Invalid or revoked key. Treat as hold.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- gate
properties:
gate:
type: string
const: error
'402':
description: Daily allowance and credits used. Treat as hold and pass operator_message to the key owner.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/PaymentRequired'
- type: object
required:
- gate
properties:
gate:
type: string
const: error
'422':
description: 'Hold: consent_needed, blocked or unknown, with the reason and full check result.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/CheckResponse'
- type: object
required:
- gate
properties:
gate:
type: string
const: hold
'429':
description: Daily or minute rate limit reached. Treat as hold.
headers:
Retry-After:
description: Seconds until reset or retry.
schema:
type: integer
minimum: 1
content:
application/json:
schema:
allOf:
- oneOf:
- $ref: '#/components/schemas/DailyLimit'
- type: object
required:
- error
- message
- retry_after
properties:
error:
type: string
const: rate_limited
message:
type: string
retry_after:
type: integer
- type: object
required:
- gate
properties:
gate:
type: string
const: error
'500':
description: The check could not be completed. Treat as hold.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- gate
properties:
gate:
type: string
const: error
tags:
- Gate
operationId: postApiV1Gate
x-operation-id-source: derived
components:
schemas:
CheckResponse:
type: object
required:
- charged
properties:
charged:
type: boolean
description: 'False for unknown xx_unknown_country answers and one qualifying re-check within 24 hours. Combined cap: 50 per UK day per key, or keyless IP, then charged as normal. Apify partner billing unchanged.'
free_recheck_of:
type: string
description: Earlier receipt id. Same address and key, or keyless channel, within 24 hours of a charged unknown or consent_needed answer with recipient_country, company_name or company_number added or changed. Once per address in 24 hours.
held_because:
type: object
required:
- case
- evidence
properties:
case:
type: string
enum:
- likely_sole_trader
- sole_trader_stated
- company_not_linked
- no_company_found
evidence:
type: array
items:
type: string
possible_company:
type: object
required:
- name
- number
properties:
name:
type: string
number:
type: string
description: Unconfirmed company suggestion. Never establishes recipient country.
verdict:
type: string
enum:
- ok_to_email
- consent_needed
- blocked
- unknown
confidence:
type: string
enum:
- high
- medium
- low
reasons:
type: array
items:
type: object
rules_applied:
type: array
items:
type: string
footer_text:
type:
- string
- 'null'
next_step:
type:
- string
- 'null'
facts:
type: object
description: legal_form_source companies_house_name_domain means an active company matching the supplied or website-derived name is confirmed by a distinctive recipient domain stem match, 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 public_sector_domain means the recipient's domain is a UK public-sector one (.gov.uk, .ac.uk, .sch.uk, .police.uk and similar). legal_form_source is unavailable when Companies House could not be searched by name, or unconfirmed when one exact active company matches the domain but the website could not be read to confirm it runs the site. Both UK verdicts are unknown. For unconfirmed, pass company_number only if the website or your lead data confirms the company named in the notes; otherwise check again later.
receipt:
$ref: '#/components/schemas/Receipt'
rules_version:
type: string
usage:
type: object
properties:
trial_ends_at:
type: string
format: date-time
description: Present while the key trial is running.
plan_url:
type: string
format: uri
description: Tracked p=monthly checkout, added to keyed low/heads-up notices unless a plan is active. In the last three trial days, notice includes the trial end date and monthly option.
free_remaining_today:
type: integer
credits_remaining:
type: integer
auto_topup:
type: boolean
description: Present for keyed calls. Whether auto top-up is enabled.
manage_url:
type: string
description: Key settings page. Present in auto top-up low-balance notices.
low_balance:
type: boolean
description: Present when the key has 1 to 200 pack checks left.
top_up_url:
type: string
description: Checkout link for another 2,000 checks at low pack balance. Omitted while an automatic top-up is on its way; included if it failed. At low free allowance with zero credits, links to /buy?ref=low instead, without creating checkout.
get_key_url:
type: string
description: Free-key page with ?ref=low, present near the keyless daily limit.
notice:
type: string
description: Free-allowance heads-up at max(2, 20% of the keyless allowance) or max(3, 20% of the key allowance) remaining, when credits are zero. Also used for the unchanged low pack balance or auto top-up failure notice.
disclaimer:
type: string
CheckRequest:
type: object
properties:
recipient_email:
type: string
recipient_domain:
type: string
sender_country:
type: string
enum:
- GB
- US
- CA
- DE
- FR
- AU
- IE
- NL
- ES
- IT
- LV
- AE
- EG
- QA
default: GB
description: 'Country the sending business is based in: any covered country (GB, US, CA, DE, FR, AU, IE, NL, ES, IT, LV, AE, EG or QA). CA senders must also meet the existing CASL implied-consent rule: published address without a refusal statement and a role-relevant pitch. CASL footer requirements are added.'
pitch:
type: string
address_source:
type: string
enum:
- published
- bought
- scraped
- given
- unknown
default: unknown
recipient_country:
type: string
pattern: ^[A-Za-z]{2}$
description: Recipient country as a two-letter code. Covers the UK, US, Canada, Germany, France, Australia, Ireland, the Netherlands, Spain, Italy, Latvia, the United Arab Emirates, Egypt and Qatar.
default_recipient_country:
type: string
pattern: ^[A-Za-z]{2}$
description: Used only when the country can't be worked out. recipient_country always wins.
company_name:
type: string
maxLength: 160
description: The recipient's company or organisation name if you know it. For UK recipients it is used to search Companies House when the domain alone does not find the company. A company is only used when other evidence links it to the recipient, including a distinctive domain stem match.
recipient_name:
type: string
maxLength: 120
description: The recipient's full name if you know it. For UK recipients it is matched against a company's current officers. Precleared does not store it.
company_number:
type: string
description: 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 companies_house_name_domain with medium confidence.
pitch_relevant:
type: boolean
existing_customer:
type: boolean
default: false
suppressed:
type: boolean
PaymentRequired:
type: object
required:
- error
- message
- operator_message
- buy_url
- auto_topup
- enable_auto_topup_url
- manage_url
- packs
- limit
- resets_at
- retry_after
properties:
error:
type: string
const: payment_required
message:
type: string
operator_message:
type: string
description: Pass these newline-separated instructions to the person running the agent.
buy_url:
type: string
format: uri
description: The key's £39 checkout for 2,000 checks.
auto_topup:
type: boolean
enable_auto_topup_url:
type: string
manage_url:
type: string
starter_url:
type: string
format: uri
description: Present only when the key's first-purchase starter checkout is available.
plan_url:
type: string
format: uri
description: Tracked p=monthly checkout for 100 checks a day at £15 a month. Omitted for active or past-due plans.
agent_payment:
type: object
required:
- protocol
- method
- how
- pack_url
properties:
protocol:
type: string
const: mpp
method:
type: string
const: stripe
how:
type: string
pack_url:
type: string
format: uri
starter_url:
type: string
format: uri
description: Only while the key can buy its first-purchase starter.
description: Present only when agent payments are on. POST the pay URL, pay the Stripe MPP challenge and repeat the POST with the Payment credential.
packs:
type: array
items:
type: object
required:
- id
- name
- price_gbp
- checks
- url
properties:
id:
type: string
enum:
- starter
- pack
name:
type: string
price_gbp:
type: number
checks:
type: integer
url:
type: string
format: uri
description: Always contains the £39 pack; contains the £9 starter only when available.
limit:
type: integer
description: This key's free daily allowance for the channel.
resets_at:
type: string
format: date-time
description: Next midnight UK time.
retry_after:
type: integer
minimum: 1
description: Seconds until reset. Body only; a 402 has no Retry-After header.
Receipt:
type: object
properties:
id:
type: string
created_at:
type: string
request_hash:
type: string
response_hash:
type: string
signature:
type: string
algorithm:
type: string
key_version:
type: string
verify_url:
type: string
DailyLimit:
type: object
required:
- error
- message
- operator_message
- get_key_url
- create_key
- limit
- resets_at
- retry_after
properties:
error:
type: string
const: daily_limit
message:
type: string
operator_message:
type: string
description: Pass this message to the person running the agent.
get_key_url:
type: string
format: uri
description: Free-key page with ?ref=limit.
create_key:
type: object
required:
- method
- url
- body
properties:
method:
type: string
const: POST
url:
type: string
format: uri
description: Keys endpoint on the request origin, https://precleared.dev/api/v1/keys on the public site.
body:
type: object
required:
- email
properties:
email:
type: string
example: <your operator's email>
description: 'Create a free key with the operator''s email. The 201 reply returns it once; save it. New keys get 14 days at 100 checks a day, starting with the first check. Limits: 3 keys per email and 5 new keys per network in a rolling 24 hours.'
limit:
type: integer
description: Keyless daily allowance for this channel.
resets_at:
type: string
format: date-time
description: Next midnight UK time.
retry_after:
type: integer
minimum: 1
description: Seconds until the daily allowance resets.
Error:
type: object
properties:
error:
type: string
message:
type: string
securitySchemes:
bearer:
type: http
scheme: bearer
description: Optional API key, pc_live_...