# InboxIt API > Verify emails, find work emails, look up companies by domain and search businesses by type and place. All of it runs on InboxIt's own engines. One API key, one catalog, every call metered. ## Authentication Send `Authorization: Bearer ink_...` on every call except the two public documents. A key belongs to one workspace. Ask InboxIt staff for a key. ## Limits and credits - Default per key: 60 calls a minute and 1000 calls a day (UTC days). GET https://app.inboxit.io/api/v1/catalog shows the limits of your key. - Over a limit the answer is HTTP 429 with a Retry-After header (seconds). Wait that long, then retry. - A call that was counted has these headers: `X-RateLimit-Limit` (The calls this key may make in one minute.) `X-RateLimit-Remaining` (The calls left in this minute.) `X-RateLimit-Reset` (The seconds until this minute ends.) `X-RateLimit-Limit-Day` (The calls this key may make in one UTC day.) `X-RateLimit-Remaining-Day` (The calls left in this UTC day.) A call refused before it was counted has none of them. - A call that succeeds costs the credits listed below. A call that fails (4xx or 5xx) costs 0 credits but still counts as a call. - GET https://app.inboxit.io/api/v1/usage shows calls and credits used today and this month. ## Errors Every error has one shape: `{"error":{"code":"...","message":"...","request_id":"req_..."}}`. Codes: `missing_key`, `invalid_key`, `revoked_key`, `key_expired`, `insufficient_scope`, `ip_not_allowed`, `api_off`, `feature_off`, `tool_stopped`, `spend_cap`, `idempotency_key_required`, `idempotency_in_progress`, `idempotency_mismatch`, `confirmation_required`, `rate_limited`, `invalid_json`, `invalid_input`, `not_found`, `engine_unavailable`, `engine_busy`, `engine_timeout`, `api_unavailable`, `internal_error`. - 401: missing_key, invalid_key, revoked_key or key_expired (the key has passed its end date: ask for a new key). 403: insufficient_scope (a read-only key on an endpoint that needs a read-write key: ask for a read-write key) or ip_not_allowed (this key cannot be used from your address: ask InboxIt to add it). 429: rate_limited. 400/422: invalid_json or invalid_input (fix the request, do not retry as is). - 503/504: engine_unavailable, engine_busy or engine_timeout. These are safe to retry later. - Every answer from a key has an `X-Request-Id` header. In an error it is the same as request_id. Give it to InboxIt when you ask about a call. - The tool endpoints (/api/v1/tools): 403: api_off (API access is switched off for your account: ask InboxIt to switch it on). 404: not_found (no tool by that name on the API: GET https://app.inboxit.io/api/v1/tools lists them). 423: feature_off (that feature is switched off for your account) or tool_stopped (InboxIt has stopped this tool for now). 503: api_unavailable (safe to retry after Retry-After). - A tool that changes data: 400: idempotency_key_required (send an Idempotency-Key header). 409: idempotency_in_progress (a call with this value has not finished: retry after Retry-After). 422: idempotency_mismatch (this value was used for another tool or body: use a new one). 428: confirmation_required (call its plan tool and send the confirmation). 403: insufficient_scope (the key needs this tool's group, or a read-write key). - A paid tool: 402: spend_cap (the key reached its daily credit cap, or has none. Nothing ran). ## Endpoints ### POST https://app.inboxit.io/api/v1/email/verify Check one email address. Runs the InboxIt email verifier on one address (syntax, mail server, and a live mailbox check where the mail server allows it). verdict is valid, invalid (no such mailbox, or the mailbox is disabled or full), risky (catch-all domain) or unknown (the mail server did not give a clear answer; try again later). Credits: 1 (charged only when the call succeeds). JSON body fields: email. Required: email. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" -H "Content-Type: application/json" -d '{"email":"jane@example.com"}' https://app.inboxit.io/api/v1/email/verify ``` ### POST https://app.inboxit.io/api/v1/email/find Find a person's work email. Builds the likely addresses for a name at a domain and checks them in likelihood order. status is found only when the mailbox was confirmed. A pattern guess that was not confirmed comes back as status guess with a risky verdict and is never presented as verified. This call can take up to a minute. Credits: 5 (charged only when the call succeeds). JSON body fields: first_name, last_name, domain. Required: first_name, last_name, domain. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" -H "Content-Type: application/json" -d '{"first_name":"Jane","last_name":"Doe","domain":"example.com"}' https://app.inboxit.io/api/v1/email/find ``` ### POST https://app.inboxit.io/api/v1/company/lookup Look up a company by its domain. Reads the company's own public website with our crawler: name, phones, emails printed on the site, social links, technologies and whether it is hiring. Only what the site itself shows. Fields the site does not show come back empty. This call can take up to a minute. Credits: 3 (charged only when the call succeeds). JSON body fields: domain. Required: domain. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" -H "Content-Type: application/json" -d '{"domain":"example.com"}' https://app.inboxit.io/api/v1/company/lookup ``` ### GET https://app.inboxit.io/api/v1/companies/search Search businesses by type and place. Searches the public business directory. category is plain words (dental clinic, plumber). Give at least one of state, city or zip. limit is at most 100. Pass next_cursor back as cursor for the next page. Credits are charged per call, not per row. Credits: 2 (charged only when the call succeeds). Query fields: category, state, city, zip, limit, cursor. Required: category. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" "https://app.inboxit.io/api/v1/companies/search?category=dental%20clinic&state=TX&limit=25" ``` ### GET https://app.inboxit.io/api/v1/jobs/search Search open job postings by role, place or company. Searches our jobs index: postings read from public job boards, each kept as a record with first_seen, last_seen and closed_at. q matches the title or department, location and company match as substrings, since_days limits to recently posted roles (falling back to when we first saw a posting that publishes no date). Only open roles unless include_closed=true. total is the number of matches ignoring the page, so paging is safe. Credits are charged per call, not per row. Credits: 2 (charged only when the call succeeds). Query fields: q, location, company, since_days, include_closed, limit, offset. Required: none. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" https://app.inboxit.io/api/v1/jobs/search ``` ### POST https://app.inboxit.io/api/v1/exclusions/sync Keep your do-not-contact list in sync. Send your do-not-contact list once a day. New addresses and domains are added to your list, and anyone they cover in a running campaign is stopped there. It only adds: an address you take off your own list stays on InboxIt until someone deletes it on the Exclusions page. An email blocks that one address. A domain blocks the whole company. A public mailbox domain such as gmail.com is never stored as a domain, and is listed in public_domains_dropped. A bad row does not refuse the list: good rows are saved, and bad rows are counted in invalid. At most 5000 entries a call. Sending the same list again changes nothing. Free. Needs a read-write key. Credits: 0 (free). JSON body fields: emails, domains, reason. Required: none. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" https://app.inboxit.io/api/v1/exclusions/sync ``` ### GET https://app.inboxit.io/api/v1/tools List the tools this key can call. The InboxIt tools this key can call, each with its price in credits, what it does, and its input schema. The same tools power the InboxIt assistant inside the app. A tool whose feature is switched off for your account is not listed, and neither is a tool this key has no access to. A tool InboxIt has stopped for now stays on the list with stopped: true. Needs API access switched on for your account by InboxIt; while it is off, every tool endpoint answers 403 api_off. Free. Credits: 0 (free). ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" https://app.inboxit.io/api/v1/tools ``` ### POST https://app.inboxit.io/api/v1/tools/{name} Call one tool. Runs one tool from GET /api/v1/tools with the JSON body as its input (send {} for a tool with no input). The answer is { "tool": name, "data": ... }. The price of each tool is in the list; a call that fails or is refused costs 0. A tool whose feature is switched off for your account answers 423 feature_off, and a tool InboxIt has stopped answers 423 tool_stopped. Needs API access switched on (403 api_off while off). A tool this key has no access to answers 403 insufficient_scope: the key needs the tool's group, and a read-write key for a tool that changes data. An answer with "partial": true could be read only in part (partial_reason says so) and costs 0. A tool with idempotency_key_required needs an Idempotency-Key header: a value you make, one per change. For 24 hours, a retry with the same value and body gets the first answer with the header Idempotency-Replayed: true. It does not run again and costs 0. A 500 from such a tool means it may have done part of its work: check the result, then use a new value. A paid tool reserves its credits against the key's daily credit cap before it runs: 402 spend_cap means nothing ran. A paid tool that fails keeps its reservation for that day. A tool with a plan step answers an approval with a confirmation. Send that back as "confirmation" on the tool that makes the change: without a valid one, that tool answers 428 confirmation_required. Credits: 1 (charged only when the call succeeds). JSON body: The tool's own input, as its input_schema in GET /api/v1/tools says. ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" -H "Content-Type: application/json" -d '{}' https://app.inboxit.io/api/v1/tools/campaign_status ``` ### GET https://app.inboxit.io/api/v1/catalog List every endpoint. Every endpoint with its credit cost, this key's limits, and its input and output schema. Free. Credits: 0 (free). ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" https://app.inboxit.io/api/v1/catalog ``` ### GET https://app.inboxit.io/api/v1/usage This key's usage. Calls, credits and errors for this key and for its whole workspace, today and this month (UTC days), by endpoint. Free. Credits: 0 (free). ``` curl -s -H "Authorization: Bearer $INBOXIT_API_KEY" https://app.inboxit.io/api/v1/usage ``` ## Webhooks - InboxIt staff add a webhook to an API key: an https link and the events it hears. The signing secret shows one time. - A webhook sends only while API access and Notifications are both On for your account, and only on a key with the Read group. What happens while either switch is Off is not sent later. - Each POST is signed: the InboxIt-Signature header holds t= and v1=.", made with the signing secret>. Check it before you trust the body. - Answer 2XX within 8 seconds. An answer of 408, 429 or 5XX, or no answer, is tried again after 1, 5, 15 and 60 minutes. The 5th try is the last. Any other answer ends it at once. - A POST can come more than one time. The body id and the InboxIt-Event-Id header are the same on each try: drop a repeat by that id. Each POST has this JSON body: `{"id","type","workspace_id","occurred_at","data"}`. The fields of `data`: ### reply.received A lead answered an email. Sent one time for each reply, the first time one of these is true: it gets the category Interested, Meeting booked, Not interested or Out of office; it needs a person; it asks to stop. No category, or the category Wrong person, Meeting done, Won, No show or Lost, does not send it by itself. - `replyId`: The reply. The same id as in list_replies. - `channel`: Always email. - `lead`: The address of the person who wrote. - `leadName`: Their name, or null. - `leadCompany`: Their company, or null. - `leadTitle`: Their job title, or null. - `subject`: The subject, or null. - `preview`: The start of the message, or null. Read the full message in the app. - `campaign`: The campaign name, or null. - `category`: The category of the reply, or null. - `receivedAt`: When the reply came in. ### campaign.launched A campaign started to send. - `draftId`: The campaign. The same id as in list_campaign_drafts. - `campaignName`: The campaign name. ### campaign.paused A campaign stopped: someone paused it, or too many emails bounced. - `draftId`: The campaign, or null when it did not start from a draft. - `campaignName`: The campaign name. - `reason`: paused: someone paused it. bounce_brake: too many emails bounced. - `emailsSent`: For bounce_brake: how many emails went out. Otherwise null. - `bounced`: For bounce_brake: how many bounced. Otherwise null. ### lead.bounced An email to a lead came back for good: the address does not take mail. Sent one time for each address in each campaign. occurred_at is when it came back. A busy campaign can send many in a day. - `lead`: The address that bounced. Look it up with get_lead. - `draftId`: The campaign. The same id as in list_campaign_drafts. Null when we cannot match the bounce to a campaign. - `campaignName`: The campaign name. Null when draftId is null. ## Public documents (no key) - https://app.inboxit.io/api/v1/openapi.json: OpenAPI document - https://app.inboxit.io/llms.txt: Instructions for AI agents ## Notes for agents - email/find only reports `found` and `verified: true` when the mailbox was confirmed. A `guess` is a pattern, not a fact. Never treat it as verified. - company/lookup and companies/search return what public sources show. Empty fields mean the source had nothing, not that the company has none. - email/find and company/lookup can take up to a minute. Use a timeout of at least 90 seconds.