{"openapi":"3.1.0","info":{"title":"InboxIt API","version":"1.0.0","description":"Email verify, email find, company lookup and business search, on InboxIt's own engines. Every call needs a workspace API key. Default limits per key: 60 calls a minute and 1000 a day (UTC). Over a limit: HTTP 429 with Retry-After. A key is read-only or read-write. A read-only key cannot change data: on an endpoint that needs a read-write key it gets HTTP 403 insufficient_scope. A key can have an end date. After it, every call gets HTTP 401 key_expired. A key can have a list of addresses. From any other address, every call gets HTTP 403 ip_not_allowed. The tool endpoints (/api/v1/tools) need API access switched on for your account by InboxIt: while it is off they answer HTTP 403 api_off. Every answer from a key has an X-Request-Id header, and every error has the same id as request_id: give it to InboxIt when you ask about a call. A call that was counted has X-RateLimit headers: what the key may do and what is left, for this minute and this UTC day."},"servers":[{"url":"https://app.inboxit.io"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer ink_..."}},"headers":{"X-Request-Id":{"description":"The id of this call, the same as request_id in an error. Give it to InboxIt when you ask about a call.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"The calls this key may make in one minute. Left out when the call was refused before it was counted.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"The calls left in this minute. Left out when the call was refused before it was counted.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"The seconds until this minute ends. Left out when the call was refused before it was counted.","schema":{"type":"integer"}},"X-RateLimit-Limit-Day":{"description":"The calls this key may make in one UTC day. Left out when the call was refused before it was counted.","schema":{"type":"integer"}},"X-RateLimit-Remaining-Day":{"description":"The calls left in this UTC day. Left out when the call was refused before it was counted.","schema":{"type":"integer"}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}},"security":[{"bearerAuth":[]}],"paths":{"/api/v1/email/verify":{"post":{"operationId":"email_verify","summary":"Check one email address","description":"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). Costs 1 credit(s) when it succeeds.","x-credits":1,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"additionalProperties":false,"properties":{"email":{"type":"string","description":"The address to check.","maxLength":254,"examples":["jane@example.com"]}}}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["email","verdict","smtp_checked"],"properties":{"email":{"type":"string","description":"The address as checked, lower case."},"verdict":{"type":"string","enum":["valid","invalid","risky","unknown"]},"reason":{"type":["string","null"],"description":"Short machine-readable cause when there is one (for example mailbox_disabled_or_over_quota)."},"smtp_checked":{"type":"boolean","description":"True when the mailbox itself was asked, not only the domain."},"checked_at":{"type":["string","null"],"description":"When the verifier last checked this address (ISO 8601, UTC)."},"cached":{"type":"boolean","description":"True when the answer came from the verifier's cache."}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/email/find":{"post":{"operationId":"email_find","summary":"Find a person's work email","description":"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. Costs 5 credit(s) when it succeeds.","x-credits":5,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["first_name","last_name","domain"],"additionalProperties":false,"properties":{"first_name":{"type":"string","description":"Given name.","maxLength":80},"last_name":{"type":"string","description":"Family name.","maxLength":80},"domain":{"type":"string","description":"Company domain, for example example.com. A full web address is accepted.","maxLength":253}}}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["status","email","verified"],"properties":{"status":{"type":"string","enum":["found","guess","not_found","busy"],"description":"found = confirmed mailbox. guess = best pattern, NOT confirmed. not_found = nothing usable. busy = the checker was throttled; retry later."},"email":{"type":["string","null"],"description":"The address, or null."},"verified":{"type":"boolean","description":"True only when status is found."},"verdict":{"type":["string","null"],"enum":["valid","invalid","risky","unknown",null]},"patterns_tried":{"type":"integer"},"retry_in_seconds":{"type":["integer","null"],"description":"Set when status is busy."}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/company/lookup":{"post":{"operationId":"company_lookup","summary":"Look up a company by its domain","description":"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. Costs 3 credit(s) when it succeeds.","x-credits":3,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"additionalProperties":false,"properties":{"domain":{"type":"string","description":"Company domain, for example example.com. A full web address is accepted.","maxLength":253}}}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["domain","found"],"properties":{"domain":{"type":"string","description":"The domain as looked up."},"found":{"type":"boolean","description":"False when the site gave us nothing."},"site_status":{"type":["string","null"],"description":"How the site read went: found, not_found, blocked (the site refuses robots) or unreachable."},"name":{"type":["string","null"],"description":"Company name."},"description":{"type":["string","null"],"description":"What the site says the company does."},"phones":{"type":"array","items":{"type":"string"}},"emails":{"type":"array","items":{"type":"string"},"description":"Addresses printed on the site. Not verified."},"socials":{"type":"array","items":{"type":"string"},"description":"Social profile links."},"technologies":{"type":"array","items":{"type":"string"}},"is_hiring":{"type":["boolean","null"]},"headcount_estimate":{"type":["integer","null"]}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/companies/search":{"get":{"operationId":"companies_search","summary":"Search businesses by type and place","description":"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. Costs 2 credit(s) when it succeeds.","x-credits":2,"parameters":[{"name":"category","in":"query","required":true,"schema":{"type":"string","description":"Business type in plain words.","maxLength":80}},{"name":"state","in":"query","required":false,"schema":{"type":"string","description":"Two-letter US state code.","pattern":"^[A-Za-z]{2}$"}},{"name":"city","in":"query","required":false,"schema":{"type":"string","description":"City name.","maxLength":80}},{"name":"zip","in":"query","required":false,"schema":{"type":"string","description":"Five-digit US ZIP code.","pattern":"^[0-9]{5}$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"The next_cursor of the previous page.","maxLength":200}}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["companies","next_cursor"],"properties":{"companies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"],"description":"Business name."},"category":{"type":["string","null"],"description":"Business type."},"website":{"type":["string","null"],"description":"Own website."},"domain":{"type":["string","null"],"description":"Own website domain."},"phone":{"type":["string","null"],"description":"Phone number."},"email":{"type":["string","null"],"description":"Email listed in the directory."},"address":{"type":["string","null"],"description":"Street address."},"city":{"type":["string","null"],"description":"City."},"state":{"type":["string","null"],"description":"State."},"postcode":{"type":["string","null"],"description":"Postcode."},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]}}}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor for the next page, or null at the end."},"category_ids":{"type":"array","items":{"type":"string"},"description":"The directory categories the words matched."}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/jobs/search":{"get":{"operationId":"jobs_search","summary":"Search open job postings by role, place or company","description":"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. Costs 2 credit(s) when it succeeds.","x-credits":2,"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Words in the role title or department.","maxLength":80}},{"name":"location","in":"query","required":false,"schema":{"type":"string","description":"Place text, e.g. \"Austin\" or \"Remote\".","maxLength":80}},{"name":"company","in":"query","required":false,"schema":{"type":"string","description":"Company name text.","maxLength":80}},{"name":"since_days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":365,"description":"Only postings from the last N days."}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"description":"Include roles that are no longer open."}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}}],"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["roles","total","limit","offset","closed_included"],"properties":{"roles":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"The job board the posting came from."},"source_job_id":{"type":"string","description":"That board's own posting id."},"company":{"type":["string","null"],"description":"Company named on the board."},"title":{"type":"string"},"location":{"type":["string","null"],"description":"Place text as the board writes it."},"department":{"type":["string","null"],"description":"Department, when the board publishes one."},"url":{"type":["string","null"],"description":"Link to the posting."},"posted_at":{"type":["string","null"],"description":"When the board says it was posted (null when it publishes no date)."},"first_seen":{"type":"string","description":"When our crawl first saw it."}}}},"total":{"type":"integer","description":"Matches ignoring limit/offset."},"limit":{"type":"integer"},"offset":{"type":"integer"},"closed_included":{"type":"boolean"}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/exclusions/sync":{"post":{"operationId":"exclusions_sync","summary":"Keep your do-not-contact list in sync","description":"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.","x-credits":0,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"Send at least one entry in emails or domains.","properties":{"emails":{"type":"array","items":{"type":"string"},"maxItems":5000,"description":"Addresses to block, one person each.","examples":[["jane@example.com"]]},"domains":{"type":"array","items":{"type":"string"},"maxItems":5000,"description":"Company domains to block. A full web address is accepted.","examples":[["example.com"]]},"reason":{"type":"string","description":"Why they are on the list, shown on the Exclusions page. Default: do_not_contact.","maxLength":200}}}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["received","added","skipped","invalid","public_domains_dropped","running_campaigns"],"properties":{"received":{"type":"integer","description":"Entries in this call."},"added":{"type":"integer","description":"New entries saved."},"skipped":{"type":"integer","description":"Already on the list, or repeated in this call."},"invalid":{"type":"object","description":"Entries that are not an address or a domain. They were not saved.","properties":{"count":{"type":"integer"},"examples":{"type":"array","items":{"type":"string"},"description":"Up to 5, to find them in your file."}}},"public_domains_dropped":{"type":"array","items":{"type":"string"},"description":"Public mailbox domains that were not stored. To block a person on one, send their email."},"running_campaigns":{"type":["object","null"],"description":"null when nothing new was added. Otherwise what happened to the people these entries cover in running campaigns.","properties":{"status":{"type":"string","enum":["done","partial","unavailable"],"description":"done = nothing left to try (read not_stopped too). partial = some are not stopped yet, or a campaign could not be checked; tried again every 10 minutes. unavailable = could not look now; tried again every 10 minutes."},"stopped":{"type":"integer","description":"Stopped now."},"already_stopped":{"type":"integer","description":"Already receiving nothing more."},"pending":{"type":["integer","null"],"description":"Not stopped yet; tried again every 10 minutes. null = not known yet."},"not_stopped":{"type":"integer","description":"Could not be matched on the sending platform. Ask InboxIt to check these."}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools":{"get":{"operationId":"tools_list","summary":"List the tools this key can call","description":"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.","x-credits":0,"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tools"],"properties":{"tools":{"type":"array","items":{"type":"object","required":["name","description","credits","paid","group","idempotency_key_required","stopped","method","path","input_schema"],"properties":{"name":{"type":"string","description":"The tool name, for POST /api/v1/tools/{name}."},"description":{"type":"string","description":"What the tool does and what it answers."},"credits":{"type":"integer","description":"Credits charged when a call succeeds."},"paid":{"type":"boolean","description":"true = the credits count against the key's daily credit cap, reserved before the call. A key with cap 0 cannot call it."},"group":{"type":"string","description":"The group the key needs. Every other group than read also needs a read-write key."},"idempotency_key_required":{"type":"boolean","description":"true = the tool changes data, so send an Idempotency-Key header. A retry with the same value and body gets the first answer and costs 0."},"stopped":{"type":"boolean","description":"true = InboxIt has stopped this tool for now: a call answers 423 tool_stopped."},"method":{"type":"string","enum":["POST"]},"path":{"type":"string","description":"Where to call it."},"input_schema":{"type":"object","description":"JSON Schema of the tool's input."}}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/{name}":{"post":{"operationId":"tools_call","summary":"Call one tool","description":"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. Costs 1 credit(s) when it succeeds.","x-credits":1,"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The tool's own input, as its input_schema in GET /api/v1/tools says."}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","description":"The tool that ran."},"data":{"type":"object","description":"The tool's answer."},"partial":{"type":"boolean","description":"Present and true only when part of the answer could not be read. Such a call costs 0."},"partial_reason":{"type":"string","description":"Why the answer is partial, in plain words. Present only with partial."},"approval":{"type":"object","description":"Present only on a tool with a plan step: summary, facts and expires_at, and confirmation to send to the tool that makes the change, or blocked and blocked_reason when that change cannot go ahead now."}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/catalog":{"get":{"operationId":"catalog","summary":"List every endpoint","description":"Every endpoint with its credit cost, this key's limits, and its input and output schema. Free.","x-credits":0,"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object"}},"limits":{"type":"object"}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/usage":{"get":{"operationId":"usage","summary":"This key's usage","description":"Calls, credits and errors for this key and for its whole workspace, today and this month (UTC days), by endpoint. Free.","x-credits":0,"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object"},"workspace":{"type":"object"},"limits":{"type":"object"}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/openapi.json":{"get":{"operationId":"openapi","summary":"OpenAPI document","description":"The OpenAPI 3.1 description of this API. Public, no key.","x-credits":0,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[]}},"/api/v1/tools/campaign_status":{"post":{"operationId":"tool_campaign_status","summary":"Every campaign with its status and its numbers: emails sent, opens, replies, bounces, open rate and reply rate, the lead list it sends to, and when the numbers were last updated (they refresh about once an hour, so check lastSyncedAt).","description":"Costs 1 credit(s) when it succeeds. The key needs the read group.","x-credits":1,"x-group":"read","x-paid":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"campaign_status"},"data":{"type":"object","properties":{"campaigns":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","number","boolean","null"]},"name":{"type":["string","number","boolean","null"]},"status":{"type":["string","number","boolean","null"]},"listName":{"type":["string","number","boolean","null"]},"emailsSent":{"type":["string","number","boolean","null"]},"opens":{"type":["string","number","boolean","null"]},"replies":{"type":["string","number","boolean","null"]},"bounced":{"type":["string","number","boolean","null"]},"openRate":{"type":["string","number","boolean","null"]},"replyRate":{"type":["string","number","boolean","null"]},"startedAt":{"type":["string","number","boolean","null"]},"lastSyncedAt":{"type":["string","number","boolean","null"]}}}},"total":{"type":["string","number","boolean","null"]},"syncedAt":{"type":["string","number","boolean","null"]}}},"partial":{"type":"boolean"},"partial_reason":{"type":"string"}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/list_campaign_drafts":{"post":{"operationId":"tool_list_campaign_drafts","summary":"Your email campaigns, most recently changed first: name, state, how many leads, which lead list, and the campaign id. Optional filter by state. At most 100 are shown.","description":"Costs 1 credit(s) when it succeeds. The key needs the read group.","x-credits":1,"x-group":"read","x-paid":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","launching","failed","active","paused","completed"],"description":"Only campaigns in this state. active and completed both mean launched."}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"list_campaign_drafts"},"data":{"type":"object","properties":{"total":{"type":["string","number","boolean","null"]},"shown":{"type":["string","number","boolean","null"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","number","boolean","null"]},"name":{"type":["string","number","boolean","null"]},"state":{"type":["string","number","boolean","null"]},"leads":{"type":["string","number","boolean","null"]},"listName":{"type":["string","number","boolean","null"]},"lastChange":{"type":["string","number","boolean","null"]}}}},"note":{"type":["string","number","boolean","null"]}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/list_lead_lists":{"post":{"operationId":"tool_list_lead_lists","summary":"Your lead lists with their counts: leads in the list, qualified, waiting for an email, waiting for a check, ready to send (verified email), ready and not yet in a campaign, and ready for LinkedIn.","description":"Costs 1 credit(s) when it succeeds. The key needs the read group.","x-credits":1,"x-group":"read","x-paid":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"list_lead_lists"},"data":{"type":"object","properties":{"lists":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","number","boolean","null"]},"name":{"type":["string","number","boolean","null"]},"vertical":{"type":["string","number","boolean","null"]},"region":{"type":["string","number","boolean","null"]},"persona":{"type":["string","number","boolean","null"]},"target":{"type":["string","number","boolean","null"]},"status":{"type":["string","number","boolean","null"]},"createdAt":{"type":["string","number","boolean","null"]},"counts":{"type":"object","properties":{"sourced":{"type":["string","number","boolean","null"]},"qualified":{"type":["string","number","boolean","null"]},"needsEmail":{"type":["string","number","boolean","null"]},"needsVerification":{"type":["string","number","boolean","null"]},"unconfirmed":{"type":["string","number","boolean","null"]},"undeliverable":{"type":["string","number","boolean","null"]},"readyTotal":{"type":["string","number","boolean","null"]},"readyUnused":{"type":["string","number","boolean","null"]},"readyLinkedin":{"type":["string","number","boolean","null"]},"policyExcluded":{"type":["string","number","boolean","null"]}}}}}},"total":{"type":["string","number","boolean","null"]}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/list_replies":{"post":{"operationId":"tool_list_replies","summary":"Replies that came back, newest first, on email and LinkedIn: who wrote, their company and title, which campaign, the reply category, a short preview, and whether someone has dealt with it. Filter by channel, category, dealt-with state or a text search; page with limit and offset. Replies refresh about once an hour.","description":"Costs 1 credit(s) when it succeeds. The key needs the read group.","x-credits":1,"x-group":"read","x-paid":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"],"description":"Only this channel. Leave it out for both."},"category":{"type":"string","enum":["INTERESTED","MEETING_BOOKED","MEETING_COMPLETED","WON","NO_SHOW","OOO","WRONG_PERSON","NOT_INTERESTED","LOST","UNCLASSIFIED"],"description":"Only replies with this category."},"actioned":{"type":"boolean","description":"false: only replies nobody has dealt with yet. true: only the ones dealt with."},"search":{"type":"string","description":"Matches the lead name, the company or the reply preview."},"limit":{"type":"integer","description":"How many to return, 1 to 100. Default 25."},"offset":{"type":"integer","description":"Skip this many, to page through the replies."}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"list_replies"},"data":{"type":"object","properties":{"replies":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","number","boolean","null"]},"channel":{"type":["string","number","boolean","null"]},"lead":{"type":["string","number","boolean","null"]},"leadName":{"type":["string","number","boolean","null"]},"leadCompany":{"type":["string","number","boolean","null"]},"leadTitle":{"type":["string","number","boolean","null"]},"subject":{"type":["string","number","boolean","null"]},"preview":{"type":["string","number","boolean","null"]},"campaign":{"type":["string","number","boolean","null"]},"category":{"type":["string","number","boolean","null"]},"confidence":{"type":["string","number","boolean","null"]},"summary":{"type":["string","number","boolean","null"]},"actioned":{"type":["string","number","boolean","null"]},"receivedAt":{"type":["string","number","boolean","null"]},"lastMessageFrom":{"type":["string","number","boolean","null"]}}}},"total":{"type":["string","number","boolean","null"]},"returned":{"type":["string","number","boolean","null"]},"offset":{"type":["string","number","boolean","null"]},"channelCounts":{"type":"object","properties":{"all":{"type":["string","number","boolean","null"]},"email":{"type":["string","number","boolean","null"]},"linkedin":{"type":["string","number","boolean","null"]},"whatsapp":{"type":["string","number","boolean","null"]},"meetingsBooked":{"type":["string","number","boolean","null"]}}},"newestReceivedAt":{"type":["string","number","boolean","null"]}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/get_lead":{"post":{"operationId":"tool_get_lead","summary":"Look up one lead by email address or by lead id: its id, name, job title, company, email, phone, website, the result of the email check, its status, and its campaign and list. found is false when there is no such lead in your account.","description":"Costs 1 credit(s) when it succeeds. The key needs the read group.","x-credits":1,"x-group":"read","x-paid":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"The lead's email address."},"leadId":{"type":"string","description":"The lead id, if you have it. Send email or leadId."}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"get_lead"},"data":{"type":"object","properties":{"found":{"type":["string","number","boolean","null"]},"lead":{"type":"object","properties":{"id":{"type":["string","number","boolean","null"]},"name":{"type":["string","number","boolean","null"]},"jobTitle":{"type":["string","number","boolean","null"]},"company":{"type":["string","number","boolean","null"]},"email":{"type":["string","number","boolean","null"]},"phone":{"type":["string","number","boolean","null"]},"website":{"type":["string","number","boolean","null"]},"emailCheck":{"type":"object","properties":{"result":{"type":["string","number","boolean","null"]},"meaning":{"type":["string","number","boolean","null"]}}},"status":{"type":["string","number","boolean","null"]},"campaign":{"type":["string","number","boolean","null"]},"list":{"type":["string","number","boolean","null"]}}}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/create_lead_list":{"post":{"operationId":"tool_create_lead_list","summary":"Create a new, empty lead list with a name and a sentence about who belongs in it. This does not search for anyone and spends nothing: the search is started later on the Find leads page. It answers the new list id.","description":"Costs 1 credit(s) when it succeeds. The key needs the leads group. Needs a read-write key. Send an Idempotency-Key header: a value you make, one per change.","x-credits":1,"x-group":"leads","x-paid":false,"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The list name, up to 120 characters."},"searchQuery":{"type":"string","description":"Who belongs in the list, in one sentence. 5 to 500 characters."},"location":{"type":"string","description":"A two-letter country code, like US. Optional."},"target":{"type":"integer","description":"How many leads you want, 1 to 2500. Default 1000."}},"required":["name","searchQuery"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"create_lead_list"},"data":{"type":"object","properties":{"created":{"type":["string","number","boolean","null"]},"list":{"type":"object","properties":{"id":{"type":["string","number","boolean","null"]},"name":{"type":["string","number","boolean","null"]},"target":{"type":["string","number","boolean","null"]}}}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/add_hand_added_leads":{"post":{"operationId":"tool_add_hand_added_leads","summary":"Save up to 100 people on the Added by hand page. This only saves them: it sends nothing. An invalid email address refuses the whole call and saves nobody. The answer says how many were added and how many were already there. blocked lists who was left out: blockedBy email, domain or company means the do-not-contact list matched; blockedBy error means the check could not run, so send that person again with a new Idempotency-Key.","description":"Costs 1 credit(s) when it succeeds. The key needs the leads group. Needs a read-write key. Send an Idempotency-Key header: a value you make, one per change.","x-credits":1,"x-group":"leads","x-paid":false,"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"people":{"type":"array","items":{"type":"object","required":["email"],"properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"company":{"type":"string"},"jobTitle":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"}}},"description":"The people to add, 1 to 100. Each needs email; firstName, lastName, company, jobTitle, phone and website are optional."}},"required":["people"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"add_hand_added_leads"},"data":{"type":"object","properties":{"added":{"type":["string","number","boolean","null"]},"alreadyThere":{"type":["string","number","boolean","null"]},"blocked":{"type":"array","items":{"type":"object","properties":{"email":{"type":["string","number","boolean","null"]},"blockedBy":{"type":["string","number","boolean","null"]}}}}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/tools/set_lead_status":{"post":{"operationId":"tool_set_lead_status","summary":"Set the status of up to 50 leads by lead id: new, qualified (shown as Good fit) or disqualified. This only changes the label on the lead: it sends nothing. get_lead gives a lead id from an email address. The answer says how many changed and lists the ids not found in your account.","description":"Costs 1 credit(s) when it succeeds. The key needs the leads group. Needs a read-write key. Send an Idempotency-Key header: a value you make, one per change.","x-credits":1,"x-group":"leads","x-paid":false,"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadIds":{"type":"array","items":{"type":"string"},"description":"The lead ids to change, 1 to 50."},"status":{"type":"string","enum":["new","qualified","disqualified"],"description":"The new status."}},"required":["leadIds","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["tool","data"],"properties":{"tool":{"type":"string","const":"set_lead_status"},"data":{"type":"object","properties":{"changed":{"type":["string","number","boolean","null"]},"notFound":{"type":"array","items":{"type":["string","number","boolean","null"]}}}}}}}}},"4XX":{"description":"Client error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"5XX":{"description":"Server or engine error","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit-Day":{"$ref":"#/components/headers/X-RateLimit-Limit-Day"},"X-RateLimit-Remaining-Day":{"$ref":"#/components/headers/X-RateLimit-Remaining-Day"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["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"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}},"security":[{"bearerAuth":[]}]}}},"webhooks":{"reply.received":{"post":{"summary":"Reply received","description":"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. 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=<unix seconds> and v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", 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.","security":[],"parameters":[{"name":"InboxIt-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The same on each try. Drop a repeat by this id."},{"name":"InboxIt-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event."},{"name":"InboxIt-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", made with the signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","workspace_id","occurred_at","data"],"properties":{"id":{"type":"string","description":"The event id. The same on each try."},"type":{"type":"string","const":"reply.received"},"workspace_id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["replyId","channel","lead","leadName","leadCompany","leadTitle","subject","preview","campaign","category","receivedAt"],"properties":{"replyId":{"description":"The reply. The same id as in list_replies."},"channel":{"description":"Always email."},"lead":{"description":"The address of the person who wrote."},"leadName":{"description":"Their name, or null."},"leadCompany":{"description":"Their company, or null."},"leadTitle":{"description":"Their job title, or null."},"subject":{"description":"The subject, or null."},"preview":{"description":"The start of the message, or null. Read the full message in the app."},"campaign":{"description":"The campaign name, or null."},"category":{"description":"The category of the reply, or null."},"receivedAt":{"description":"When the reply came in."}}}}}}}},"responses":{"2XX":{"description":"Received. Any other answer is a failed try: 408, 429 and 5XX are tried again, and other answers are final."}}}},"campaign.launched":{"post":{"summary":"Campaign launched","description":"A campaign started to send. 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=<unix seconds> and v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", 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.","security":[],"parameters":[{"name":"InboxIt-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The same on each try. Drop a repeat by this id."},{"name":"InboxIt-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event."},{"name":"InboxIt-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", made with the signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","workspace_id","occurred_at","data"],"properties":{"id":{"type":"string","description":"The event id. The same on each try."},"type":{"type":"string","const":"campaign.launched"},"workspace_id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["draftId","campaignName"],"properties":{"draftId":{"description":"The campaign. The same id as in list_campaign_drafts."},"campaignName":{"description":"The campaign name."}}}}}}}},"responses":{"2XX":{"description":"Received. Any other answer is a failed try: 408, 429 and 5XX are tried again, and other answers are final."}}}},"campaign.paused":{"post":{"summary":"Campaign paused","description":"A campaign stopped: someone paused it, or too many emails bounced. 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=<unix seconds> and v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", 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.","security":[],"parameters":[{"name":"InboxIt-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The same on each try. Drop a repeat by this id."},{"name":"InboxIt-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event."},{"name":"InboxIt-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", made with the signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","workspace_id","occurred_at","data"],"properties":{"id":{"type":"string","description":"The event id. The same on each try."},"type":{"type":"string","const":"campaign.paused"},"workspace_id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["draftId","campaignName","reason","emailsSent","bounced"],"properties":{"draftId":{"description":"The campaign, or null when it did not start from a draft."},"campaignName":{"description":"The campaign name."},"reason":{"description":"paused: someone paused it. bounce_brake: too many emails bounced."},"emailsSent":{"description":"For bounce_brake: how many emails went out. Otherwise null."},"bounced":{"description":"For bounce_brake: how many bounced. Otherwise null."}}}}}}}},"responses":{"2XX":{"description":"Received. Any other answer is a failed try: 408, 429 and 5XX are tried again, and other answers are final."}}}},"lead.bounced":{"post":{"summary":"Lead bounced","description":"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. 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=<unix seconds> and v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", 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.","security":[],"parameters":[{"name":"InboxIt-Event-Id","in":"header","required":true,"schema":{"type":"string"},"description":"The same on each try. Drop a repeat by this id."},{"name":"InboxIt-Event-Type","in":"header","required":true,"schema":{"type":"string"},"description":"The event."},{"name":"InboxIt-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\", made with the signing secret>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","workspace_id","occurred_at","data"],"properties":{"id":{"type":"string","description":"The event id. The same on each try."},"type":{"type":"string","const":"lead.bounced"},"workspace_id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["lead","draftId","campaignName"],"properties":{"lead":{"description":"The address that bounced. Look it up with get_lead."},"draftId":{"description":"The campaign. The same id as in list_campaign_drafts. Null when we cannot match the bounce to a campaign."},"campaignName":{"description":"The campaign name. Null when draftId is null."}}}}}}}},"responses":{"2XX":{"description":"Received. Any other answer is a failed try: 408, 429 and 5XX are tried again, and other answers are final."}}}}}}