{"openapi":"3.1.0","info":{"title":"Programmable Info API","version":"1.0.0","description":"Find companies, research them, run saved agents, decide held leads and subscribe to events. Every request spends the account's own credits under its key's limits. Docs: /docs/api. Events: /api/events."},"servers":[{"url":"https://programmable.info"}],"security":[{"apiKey":[]},{"oauth":["mcp"]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Developers (generated keys start dsk_)."},"oauth":{"type":"oauth2","description":"OAuth 2.1 with PKCE (S256). Ask for this API with resource=https://programmable.info/api. The account's owner or an admin approves; the connection then works like an API key.","flows":{"authorizationCode":{"authorizationUrl":"https://programmable.info/oauth/authorize","tokenUrl":"https://programmable.info/oauth/token","refreshUrl":"https://programmable.info/oauth/token","scopes":{"mcp":"Everything a full API key can do.","events":"Only the event endpoints under /api/account/webhooks.","offline_access":"A refresh token (every connection gets one)."}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":true},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"events":{"type":["array","null"],"items":{"type":"string","enum":["lead.held","lead.approved","lead.discarded","agent.run.completed","sheet.completed","monitor.signals","webhook.test"]},"description":"null: every event."},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"last_status":{"type":["integer","null"]},"last_error":{"type":["string","null"]},"last_sent_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"made_by":{"type":["string","null"],"description":"The connected app that added it, or null when a person or an API key did."}}},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Sent as X-Programmable-Id."},"endpoint_id":{"type":"string","format":"uuid"},"event_id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["pending","delivered","failed"]},"attempts":{"type":"integer"},"last_status":{"type":["integer","null"]},"last_error":{"type":["string","null"]},"next_attempt_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"delivered_at":{"type":["string","null"],"format":"date-time"}}},"HeldLead":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"domain":{"type":"string"},"destination":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"reason_text":{"type":"array","items":{"type":"string"}},"agent_id":{"type":["string","null"]},"agent_name":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"}},"additionalProperties":true},"Event":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","description":"Names the event."},"type":{"type":"string","enum":["lead.held","lead.approved","lead.discarded","agent.run.completed","sheet.completed","monitor.signals","webhook.test"]},"event":{"type":"string","description":"The same value as type."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}}},"paths":{"/api/sheet":{"post":{"operationId":"runSheet","summary":"Research companies or people and get rows back","description":"Send one of domains, people, linkedin or products, or a way to find companies. With \"format\": \"json\" the answer is one document once every row is done; without it, a CSV that streams. Spends credits per row.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"domains":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Companies, by website. A list, or one string separated by commas or new lines. e.g. [\"stripe.com\", \"notion.so\"]"},"input":{"description":"each_run: the agent keeps no companies of its own; each run brings them (its link with company= or domains=, a Google Sheets cell, Zapier or n8n, or the companies typed into Run now). For \"look up any store I give it\", \"research the company I send it\", a lookup tool. Without companies nothing runs or is charged, and it never runs by itself. Instead of domains, discover, find or accounts. e.g. \"each_run\""},"people":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"People as \"Name, company domain\", or their email address (kept and checked, not guessed over). Makes a people sheet (work email and more). e.g. [\"Jane Doe, stripe.com\"]"},"linkedin":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"LinkedIn profiles. A domain after each helps; with Apollo, Hunter, Findymail or PDL connected the profile alone is enough. e.g. [\"linkedin.com/in/jane-doe\"]"},"products":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Product page links: one row per product with price, stock, SKU/GTIN, variants and ratings, read from the store's own product data. e.g. [\"https://www.allbirds.com/products/mens-tree-runners\"]"},"list":{"description":"With domains: list each store's products (Shopify and WooCommerce catalogs, or product sitemaps), one row per product. e.g. \"products\""},"per_store":{"description":"With list=products: most products per store (up to 2,000). e.g. 100"},"discover":{"description":"Find companies matching a description (your Apollo or PDL key if connected, otherwise the web), then enrich them. Instead of domains. e.g. \"headless CMS vendors\""},"like":{"description":"Find companies like these. Works alone or with discover. e.g. \"stripe.com,paddle.com\""},"location":{"description":"With discover, like, find (web or all) or a list of domains: where the companies are headquartered (city, state or country; several separated by semicolons, or \"Austin, TX, Denver, CO\"). Checked against what we find on each company; misses are skipped and not charged. e.g. \"Austin, TX\""},"employees":{"description":"With discover or like: company size range, e.g. 11-50, 200+ or under 20. Checked like location. e.g. \"11-50\""},"tech":{"description":"With discover or like: technologies the companies must use. Checked like location. e.g. \"Webflow, HubSpot\""},"revenue":{"description":"More discovery filters: annual revenue (USD), founding year, total funding raised, and companies that are hiring (or a minimum number of open jobs). Your provider applies what it can (Apollo: revenue, funding, jobs; People Data Labs: founded); the rest is checked on each company. e.g. \"10M-100M\" (One of: revenue, founded, funding, jobs.)"},"founded":{"description":"More discovery filters: annual revenue (USD), founding year, total funding raised, and companies that are hiring (or a minimum number of open jobs). Your provider applies what it can (Apollo: revenue, funding, jobs; People Data Labs: founded); the rest is checked on each company. e.g. \"2015+\" (One of: revenue, founded, funding, jobs.)"},"funding":{"description":"More discovery filters: annual revenue (USD), founding year, total funding raised, and companies that are hiring (or a minimum number of open jobs). Your provider applies what it can (Apollo: revenue, funding, jobs; People Data Labs: founded); the rest is checked on each company. e.g. \"5M+\" (One of: revenue, founded, funding, jobs.)"},"jobs":{"description":"More discovery filters: annual revenue (USD), founding year, total funding raised, and companies that are hiring (or a minimum number of open jobs). Your provider applies what it can (Apollo: revenue, funding, jobs; People Data Labs: founded); the rest is checked on each company. e.g. \"yes\" (One of: revenue, founded, funding, jobs.)"},"accounts":{"description":"Library items, named by their handle: a saved company list in place of domains (a list can be a saved search, resolved each run), a saved people filter (titles, seniority, departments; implies search=people), and a saved column set with its AI questions. Explicit parameters win over a Library item's. e.g. \"target-accounts\" (One of: accounts, who, columns.)"},"who":{"description":"Library items, named by their handle: a saved company list in place of domains (a list can be a saved search, resolved each run), a saved people filter (titles, seniority, departments; implies search=people), and a saved column set with its AI questions. Explicit parameters win over a Library item's. e.g. \"buyers\" (One of: accounts, who, columns.)"},"exclude":{"description":"More Library items by handle: a Do not contact list (websites never returned, from Find, discovery or an upload; a default list applies everywhere), where leads go (webhook, CRM, format) and a spending profile (providers, AI provider and model, caps, reveal). Explicit parameters win. e.g. \"customers\" (One of: exclude, to, profile.)"},"to":{"description":"More Library items by handle: a Do not contact list (websites never returned, from Find, discovery or an upload; a default list applies everywhere), where leads go (webhook, CRM, format) and a spending profile (providers, AI provider and model, caps, reveal). Explicit parameters win. e.g. \"hubspot-flow\" (One of: exclude, to, profile.)"},"profile":{"description":"More Library items by handle: a Do not contact list (websites never returned, from Find, discovery or an upload; a default list applies everywhere), where leads go (webhook, CRM, format) and a spending profile (providers, AI provider and model, caps, reveal). Explicit parameters win. e.g. \"cheap\" (One of: exclude, to, profile.)"},"find":{"description":"Run a Find source for the companies instead of discover=: find=sam, formd, sec, contracts, web or any source in Data > Find, with that source's own parameters alongside (e.g. find=sam&naics=5415&registeredFrom=2026-07-01). The Find tab shows the exact link for any search. e.g. \"sam\""},"describe":{"description":"With find=: plain words for what you want. Your AI screens the source's results and keeps the ones that fit. e.g. \"payment processors\""},"sort":{"description":"Which companies to pick when there are more than the limit: largest, smallest, newest, oldest, most_funded or richest (by revenue). Needs a company-search provider; web search can't rank. e.g. \"largest\""},"limit":{"description":"With discover or like: how many companies to find (up to 500). e.g. 50"},"compare":{"description":"With like: the example companies are rows too, first, with the same columns, so you can compare them with the ones found (a credit each). e.g. 1"},"keep":{"description":"Keep only rows where what the run found passes: <, <=, >, >= for numbers, = or != (yes/no), ~ or !~ for contains, on column keys, comma separated (all must pass). For what no database has ahead of time (site speed, the tech a site loads, hiring), measured during the run, PageSpeed too. Rows that don't pass are left out and not charged; discovery and Find look at about three times as many candidates so the limit can still be met. e.g. \"performance_score<50, technologies~klaviyo\""},"columns":{"description":"Which column groups to return, in plain words or exact keys. Leave out for the defaults. It replaces the defaults, so add to them with default: \"default, performance\" is everything included plus PageSpeed scores. e.g. \"company, tech stack, email setup\""},"ask":{"description":"Your own questions, answered per row with your AI key. Each becomes a column. e.g. [\"Do they offer a free plan?\"]"},"ai_research":{"description":"Your questions also search the web (news, directories, docs) and cite the page each answer came from. Per question in JSON: {\"prompt\": …, \"research\": true}. e.g. 1"},"ai_max_usd":{"description":"Most this request may spend on AI. null = no cap. Leave out for your account default. e.g. 2"},"search":{"description":"Find people at the companies in domains. Use with titles, seniority and per_company. e.g. \"people\""},"titles":{"description":"Search: job titles to look for. e.g. \"sales, revenue\""},"seniority":{"description":"Search: seniority levels. e.g. \"vp,director\""},"per_company":{"description":"Search: most people per company. e.g. 10"},"reveal":{"description":"What your data providers may unlock (and spend credits on): email, mobile, personal_email, or none. e.g. \"email,mobile\""},"providers":{"description":"Which of your connected data providers to use. Leave out for all; none for the included sources only. e.g. \"apollo,findymail\""},"apify":{"description":"Skip the Apify actors saved in Connections for this run (they run on every company otherwise, on your Apify token). e.g. \"none\""},"send_to":{"description":"Also send finished rows to the tools you've connected in Connections: hubspot, salesforce, shopify (people → customers, product sheets → draft products), slack and teams (a message per batch in the channel whose webhook address you pasted: company, person and title, and the AI answers, never emails), instantly, smartlead, lemlist, woodpecker, reply and apollo (people → leads in the campaign or sequence picked in Connections, with the columns as variables, or in Apollo as contact custom fields named like them; rows need an email good enough for the connection's setting). Apollo needs a master API key and a sending mailbox, and its leads wait in the sequence until you activate it there: pick an inactive sequence to review them first. google_sheets (rows go into a new spreadsheet in your Drive). A shared link key sends rows to your tools only when it's locked to its link and its owner ticked \"May send to your tools\"; one that may not start sending can't add leads to a campaign that's already running either. e.g. \"hubspot,salesforce\""},"campaign":{"description":"With send_to=apollo, instantly, smartlead or reply: the first run writes a short email sequence from campaign_brief on your AI key and creates the campaign in that tool, paused; every later run of the same link adds its new leads to that same campaign. See \"Links that act\" below. e.g. \"new\""},"campaign_name":{"description":"With campaign=new: the new campaign's name (up to 80 characters; a different name is a different campaign); left out, the agent's name. Without campaign=new: the campaign of that name you already have in each cold-email tool in send_to (the exact name, any case, else the only one containing it), so a link can pick it instead of Connections. A tool with no campaign of that name gets no leads, and the run says so before it starts. e.g. \"Dentists, Austin\""},"campaign_brief":{"description":"With campaign=new (required): what you sell, to whom, the tone, the call to action. Up to 1,500 characters. The emails use the link's own columns as merge fields: first name, company, the opening line and your AI columns. With site_review in columns, the first email shows each lead's own website review: {{review_score}} (out of 100), {{review_top_issue}} (its worst problem) and {{review_url}} (their review page); a lead whose review isn't finished yet is held and added by a later run, never sent with an empty field. e.g. \"We do bookkeeping for dental clinics. Plain, friendly. Ask for a 15-minute call.\""},"campaign_steps":{"description":"With campaign=new: how many emails (1-5, default 3) and over how many days in all (default 10, at least a day between emails). e.g. \"3\" (One of: campaign_steps, campaign_days.)"},"campaign_days":{"description":"With campaign=new: how many emails (1-5, default 3) and over how many days in all (default 10, at least a day between emails). e.g. \"10\" (One of: campaign_steps, campaign_days.)"},"approval":{"description":"manual (the default): campaigns are created paused and leads wait for you to start them in the tool. In Smartlead and Reply.io you always start them yourself, whatever this says. agent (or your Agent settings' default): an AI reviewer on your key checks each lead and the emails first; what passes goes in, the rest is held for you. Only a link that says approval=agent itself starts a campaign it wrote, once its emails pass; the default reviews and holds but never starts anything. With min_fit, a lead whose fit can't be read is held in agent and auto runs (kept in manual). auto: only when the link itself says so, never as a default. Once this run's new leads are in, it starts a campaign this link created, or a campaign picked in Connections that has never been started; real email goes out from your mailboxes. A link starts a campaign at most once, never restarts a paused or finished one, and never starts a replacement for a deleted one. agent and auto need the team owner or an admin (or the account's own API key); a shared link key needs its owner to allow them. e.g. \"manual\""},"hold":{"description":"hold=1: every lead going to a cold-email tool waits in Approvals for the person, after the checks (fit, the email's domain, competitors); the ones they approve go into the campaign, still paused. For \"hold them for my approval\". Not with approval=auto. e.g. \"1\""},"min_fit":{"description":"1-10, with a fit question (fit_ask=N, else the question named fit, e.g. ai=[{\"name\":\"Fit\",\"prompt\":\"Score this company's fit 1-10…\"}]): leads whose answer starts with a lower number aren't sent anywhere (they stay in the sheet; the summary counts them as below min fit). With search=people, fit is scored per company first and people are searched only at companies that pass, so a low-fit company costs no people search or emails. Defaults to your Agent settings in agent and auto modes. e.g. 7"},"fit_ask":{"description":"Which of the link's AI questions (1-5, in order) is the fit score for min_fit. Leave out to use the one named fit. e.g. 2"},"review_rules":{"description":"With approval=agent: extra rules for the AI reviewer, on top of the writing rules in your Agent settings (up to 500 characters). e.g. \"No questions in the first line\""},"screen":{"description":"With discover: 1 (your Agent settings' default) screens the discovered companies against the description on your AI key before anything else; 0 doesn't. e.g. 0"},"crm_task":{"description":"With send_to=hubspot or salesforce: after each record is written, a to-do on it (the contact or company in HubSpot, the Lead or Account in Salesforce), assigned to the record's owner and due in task_due days (0-60, default 3). The task names who to reach and why, from the row's AI answers. e.g. \"1\" (One of: crm_task, task_due.)"},"task_due":{"description":"With send_to=hubspot or salesforce: after each record is written, a to-do on it (the contact or company in HubSpot, the Lead or Account in Salesforce), assigned to the record's owner and due in task_due days (0-60, default 3). The task names who to reach and why, from the row's AI answers. e.g. \"3\" (One of: crm_task, task_due.)"},"event":{"description":"new: the first run creates an event in Programmable Talk from event_title (required), event_starts_at (e.g. 2026-11-12T12:00:00-05:00), event_timezone (IANA, e.g. America/New_York), event_summary and event_platform_url (where people join), with growth playbooks on when the link sends growth playbooks, and later runs reuse it. Or your Talk event's slug or id. Every lead sent gets a Talk invite and {{event_url}}: their personal link that registers them in one click; Talk tracks opens and registrations and sends the playbook on registering. With playbook=, the playbook page's call to action is the event. Needs Programmable Talk connected in Connections and a cold-email tool in send_to. e.g. \"new\""},"event_title":{"description":"The event event=new creates in Programmable Talk: its name (2-160 characters), start with its offset, IANA time zone (default UTC), what it's about (shown on its page), the https link people join at, and the one question registering asks (3-200 characters, e.g. their store's link and a competitor's). (One of: event_title, event_starts_at, event_timezone, event_summary, event_platform_url, event_question.)"},"event_starts_at":{"description":"The event event=new creates in Programmable Talk: its name (2-160 characters), start with its offset, IANA time zone (default UTC), what it's about (shown on its page), the https link people join at, and the one question registering asks (3-200 characters, e.g. their store's link and a competitor's). (One of: event_title, event_starts_at, event_timezone, event_summary, event_platform_url, event_question.)"},"event_timezone":{"description":"The event event=new creates in Programmable Talk: its name (2-160 characters), start with its offset, IANA time zone (default UTC), what it's about (shown on its page), the https link people join at, and the one question registering asks (3-200 characters, e.g. their store's link and a competitor's). (One of: event_title, event_starts_at, event_timezone, event_summary, event_platform_url, event_question.)"},"event_summary":{"description":"The event event=new creates in Programmable Talk: its name (2-160 characters), start with its offset, IANA time zone (default UTC), what it's about (shown on its page), the https link people join at, and the one question registering asks (3-200 characters, e.g. their store's link and a competitor's). (One of: event_title, event_starts_at, event_timezone, event_summary, event_platform_url, event_question.)"},"event_platform_url":{"description":"The event event=new creates in Programmable Talk: its name (2-160 characters), start with its offset, IANA time zone (default UTC), what it's about (shown on its page), the https link people join at, and the one question registering asks (3-200 characters, e.g. their store's link and a competitor's). (One of: event_title, event_starts_at, event_timezone, event_summary, event_platform_url, event_question.)"},"event_question":{"description":"The event event=new creates in Programmable Talk: its name (2-160 characters), start with its offset, IANA time zone (default UTC), what it's about (shown on its page), the https link people join at, and the one question registering asks (3-200 characters, e.g. their store's link and a competitor's). (One of: event_title, event_starts_at, event_timezone, event_summary, event_platform_url, event_question.)"},"playbook_cta":{"description":"With playbook=only or preview: this link's call to action on the playbook page, in place of the one in Connections → Growth playbooks: an https link on your own site, your event's page (programmable.talk, lu.ma, Eventbrite) or a booking page, and the button's words (2-60 characters). e.g. \"https://programmable.talk/e/growth-workshop\" (One of: playbook_cta, playbook_cta_label.)"},"playbook_cta_label":{"description":"With playbook=only or preview: this link's call to action on the playbook page, in place of the one in Connections → Growth playbooks: an https link on your own site, your event's page (programmable.talk, lu.ma, Eventbrite) or a booking page, and the button's words (2-60 characters). e.g. \"Register for the workshop\" (One of: playbook_cta, playbook_cta_label.)"},"playbook":{"description":"preview: like only, but the link opens a preview of the playbook (score, diagnosis, the ideas' titles, one sample idea) under your brand, with playbook_cta where the full playbook would be unlocked, e.g. an event's registration; each lead also gets {{playbook_opportunity}} and {{playbook_idea}} (and {{playbook_score}}) from the preview, which campaign=new uses in the first email. only: send only leads whose company has a growth playbook on programmable.marketing, each with its link as {{playbook_url}} (with campaign=new the emails offer it). The link opens the playbook under the sender's brand with \"Talk to <sender>\" (set up once in Connections → Growth playbooks; subscribers only). Leads without one are held, not sent and not counted as covered, and requested: once the playbook is made, a later run adds them. Links to playbooks that exist are unlimited; new requests (companies without one yet) are 25 a month on Starter and AppSumo, 100 on Growth and 300 on Scale, and over that their leads wait unrequested until next month. Needs a cold-email tool in send_to. e.g. \"only\""},"skip_crm":{"description":"hubspot or salesforce: leave out companies that CRM already has (matched by website, looked up each run, before anything is charged), so a territory or lookalike list brings only new accounts. find=crm reads companies from it instead: crm=hubspot&crm_list=closed_lost (companies on deals lost in the last since_days, default 365), recent (added in the last since_days, default 30) or all. Only names and websites are read; a shared link key can do either only when it's locked to its link and may send to your tools. HubSpot's lost deals need the deals scope on its app. e.g. \"hubspot\""},"job_changes":{"description":"hubspot: check the CRM's contacts that have a LinkedIn profile (up to limit, default 200) for job changes. Each is looked up afresh, where they work now first (their profile only); only people now at a different company than the CRM has come back, with previous_company and job_change columns, and only they get the email lookup. Contacts still at the same company aren't charged (refunded) and are counted in the summary, as are those that couldn't be checked and why. Add reveal=email for their new work email, and send_to (slack, your CRM with crm_task=1) to act on it. Names, LinkedIn URLs and company websites are read each run and not kept. e.g. \"hubspot\""},"sync":{"description":"With list=products&domains=<a supplier's store>&send_to=shopify: compare the supplier's catalog with your store (matched by SKU, then barcode, then title) and bring the store up to date. Products the store doesn't have are added as drafts; a different price or sale price updates the variant; sold out at the supplier adds the sold-out-at-source tag (and removes it when it's back); after a run that listed the whole catalog, products this sync added that the supplier dropped are archived, never deleted. sync_apply=review (the default) holds price changes and removals for you on the Agents page; auto applies everything; auto_under_pct=N applies price changes under N%. Add schedule=daily to keep it in step. e.g. \"1\" (One of: sync, sync_apply, auto_under_pct.)"},"sync_apply":{"description":"With list=products&domains=<a supplier's store>&send_to=shopify: compare the supplier's catalog with your store (matched by SKU, then barcode, then title) and bring the store up to date. Products the store doesn't have are added as drafts; a different price or sale price updates the variant; sold out at the supplier adds the sold-out-at-source tag (and removes it when it's back); after a run that listed the whole catalog, products this sync added that the supplier dropped are archived, never deleted. sync_apply=review (the default) holds price changes and removals for you on the Agents page; auto applies everything; auto_under_pct=N applies price changes under N%. Add schedule=daily to keep it in step. e.g. \"review\" (One of: sync, sync_apply, auto_under_pct.)"},"auto_under_pct":{"description":"With list=products&domains=<a supplier's store>&send_to=shopify: compare the supplier's catalog with your store (matched by SKU, then barcode, then title) and bring the store up to date. Products the store doesn't have are added as drafts; a different price or sale price updates the variant; sold out at the supplier adds the sold-out-at-source tag (and removes it when it's back); after a run that listed the whole catalog, products this sync added that the supplier dropped are archived, never deleted. sync_apply=review (the default) holds price changes and removals for you on the Agents page; auto applies everything; auto_under_pct=N applies price changes under N%. Add schedule=daily to keep it in step. e.g. \"10\" (One of: sync, sync_apply, auto_under_pct.)"},"tpl":{"description":"The agent template a link came from (templates add it). It's only counted, so you can see which templates are used; it never changes what the link does. e.g. \"lost-deal-revival\""},"new_only":{"description":"Only companies this link hasn't covered before: the websites it already delivered are skipped before anything is looked up (no credits). A company counts as covered once every destination in send_to took it (or skipped it on purpose, like no email); if a destination failed, wasn't connected or was left out of the run, its companies are tried again next time. For discover and find, more candidates are asked for so the limit can still be met. The summary says how many were already seen. e.g. 1"},"schedule":{"description":"daily or weekly: saves the link to run by itself (Agents) instead of running it now, with new_only on unless the link says new_only=0. Needs your sign-in or your own API key; returns the schedule's id and next run. Opening the link again keeps the frequency set on Agents; a deleted schedule isn't brought back by its link (re-create it on Agents). Links of people (people=, linkedin=) or with an email address in them can't be scheduled. e.g. \"weekly\""},"webhook":{"description":"on sends rows to your CRM webhook as they finish (the default), off doesn't, or a one-off https:// URL. e.g. \"off\""},"format":{"description":"json returns one JSON document. Leave out for CSV. e.g. \"json\""},"name":{"description":"A name for the run (used for the file name and receipt). e.g. \"Q3 prospects\""}}}}}},"responses":{"200":{"description":"The rows.","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","additionalProperties":true}},"summary":{"type":"object","additionalProperties":true},"errors":{"type":"array","items":{"type":"string"}}}}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Something in the request is wrong; the message says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits for the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too many rows for one request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/company":{"post":{"operationId":"companyDossier","summary":"Everything about one company, each fact with its source","description":"1 credit.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"The company's website, e.g. stripe.com."}}}}}},"responses":{"200":{"description":"The dossier.","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"page":{"type":"string"},"credits_charged":{"type":"integer"},"credits_refunded":{"type":"integer"},"watching":{"type":"boolean"},"dossier":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The website couldn't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/find":{"post":{"operationId":"findCompanies","summary":"Search public sources for companies","description":"A source and its fields (the MCP tool find_companies lists them). Searching costs no credits and nothing is researched yet, but a description search is screened by AI, which spends from the account's AI budget (its own AI key, or its included AI allowance) under its per-sheet and daily limits.","x-readOnly":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"source":{"type":"string","description":"web, sec, contracts, sam, or a registry."},"limit":{"type":"integer"}}}}}},"responses":{"200":{"description":"The companies found.","content":{"application/json":{"schema":{"type":"object","properties":{"companies":{"type":"array","items":{"type":"object","additionalProperties":true}},"note":{"type":["string","null"]}},"additionalProperties":true}}}},"400":{"description":"The search can't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agents":{"get":{"operationId":"listAgents","summary":"The account's saved agents","responses":{"200":{"description":"The agents.","content":{"application/json":{"schema":{"type":"object","properties":{"agents":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agents/{id}/run":{"post":{"operationId":"runAgent","summary":"Run a saved agent now","description":"Runs in the background exactly as its schedule would: its rows go where the agent already sends them, on the account's credits. An agent.run.completed event follows. An agent that sends nowhere answers 409 with a link to run it in a browser.","parameters":[{"name":"id","in":"path","required":true,"description":"The agent's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"companies":{"type":"string","description":"Websites, comma separated: for an agent that takes its companies each run."}}}}}},"responses":{"200":{"description":"The run that started (or the one already going).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"It can't run as it is; the message says what to fix.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/held":{"get":{"operationId":"listHeldLeads","summary":"Companies the AI reviewer held for a person to decide","description":"Each with where it was going and why. Nothing about people: a held lead's saved settings are not in the answer.","parameters":[{"name":"agent","in":"query","required":false,"description":"Only one agent's.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The held companies.","content":{"application/json":{"schema":{"type":"object","properties":{"held":{"type":"array","items":{"$ref":"#/components/schemas/HeldLead"}},"reasons":{"type":"object","additionalProperties":{"type":"string"},"description":"Every reason code and what it means."},"reason_words":{"type":"object","additionalProperties":{"type":"string"}}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/held/{id}":{"post":{"operationId":"decideHeldLead","summary":"Approve or discard a held company","description":"Approving re-runs the agent for that one company (so it costs what a run of it costs) and sends its leads into the tool it was held from; lead.approved follows. Discarding sends nothing; lead.discarded follows. An approval that sent nothing answers 422 and the company is back on the list.","parameters":[{"name":"id","in":"path","required":true,"description":"The held lead's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["approve","discard"]}}}}}},"responses":{"200":{"description":"What happened, and what is still held.","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":["object","null"],"additionalProperties":true},"reopened":{"type":"boolean"},"held":{"type":"array","items":{"$ref":"#/components/schemas/HeldLead"}}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or already decided.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Approved, but nothing went into the tool: it is held again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/credits":{"get":{"operationId":"getCredits","summary":"The account's credit balance","responses":{"200":{"description":"The balance.","content":{"application/json":{"schema":{"type":"object","properties":{"credits":{"type":"integer"}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/webhooks":{"get":{"operationId":"listWebhookEndpoints","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"The account's event endpoints","responses":{"200":{"description":"The endpoints.","content":{"application/json":{"schema":{"type":"object","properties":{"endpoints":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"max":{"type":"integer"},"events":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhookEndpoint","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Subscribe a URL to events","description":"Up to 5 per account. The signing secret is in the answer, once, so call this from somewhere you are happy for the secret to be seen (a script or a terminal, not an AI tool call). HTTPS only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"events":{"type":["array","null"],"items":{"type":"string","enum":["lead.held","lead.approved","lead.discarded","agent.run.completed","sheet.completed","monitor.signals","webhook.test"]},"description":"Which events it takes. Leave out, or null, for all of them."},"description":{"type":["string","null"],"maxLength":200}}}}}},"responses":{"200":{"description":"The account already has an endpoint at this URL: it is returned as it is, with no secret (existing: true). Its events and description are not changed. For a new secret, rotate.","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"null"},"existing":{"type":"boolean"}}}}}},"201":{"description":"The endpoint and its signing secret.","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string","description":"whsec_…: keep it; it isn't shown again."},"existing":{"type":"boolean"}}}}}},"400":{"description":"The URL or an event name isn't right, or the account has its 5.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/webhooks/{id}":{"patch":{"operationId":"updateWebhookEndpoint","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Switch an endpoint off or on, or change its events","parameters":[{"name":"id","in":"path","required":true,"description":"The endpoint's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"events":{"type":["array","null"],"items":{"type":"string","enum":["lead.held","lead.approved","lead.discarded","agent.run.completed","sheet.completed","monitor.signals","webhook.test"]},"description":"Which events it takes. Leave out, or null, for all of them."},"description":{"type":["string","null"],"maxLength":200}}}}}},"responses":{"200":{"description":"The endpoint.","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteWebhookEndpoint","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Delete an endpoint","parameters":[{"name":"id","in":"path","required":true,"description":"The endpoint's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Removed.","content":{"application/json":{"schema":{"type":"object","properties":{"removed":{"type":"boolean"}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/webhooks/{id}/rotate":{"post":{"operationId":"rotateWebhookSecret","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Replace an endpoint's signing secret","description":"The new secret is in the answer, once. For 24 hours each delivery is signed with both: the header carries two v1 values, the new secret's first, so a receiver holding either accepts it. Call this from somewhere you are happy for the secret to be seen (a script or a terminal, not an AI tool call).","parameters":[{"name":"id","in":"path","required":true,"description":"The endpoint's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The new secret.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"secret":{"type":"string"},"previous_valid_until":{"type":["string","null"],"format":"date-time","description":"Until when the old secret also signs."}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/webhooks/{id}/test":{"post":{"operationId":"testWebhookEndpoint","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Send a webhook.test event to an endpoint","parameters":[{"name":"id","in":"path","required":true,"description":"The endpoint's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"How the delivery went.","content":{"application/json":{"schema":{"type":"object","properties":{"delivery":{"$ref":"#/components/schemas/WebhookDelivery"}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/webhooks/deliveries":{"get":{"operationId":"listWebhookDeliveries","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Recent deliveries: delivered, retrying or failed","description":"Delivered ones are kept 7 days, failed ones 30.","parameters":[{"name":"endpoint","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","delivered","failed"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"payload","in":"query","required":false,"description":"1 to include each body.","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"The deliveries, newest first.","content":{"application/json":{"schema":{"type":"object","properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/account/webhooks/deliveries/{id}":{"post":{"operationId":"redeliverWebhook","security":[{"apiKey":[]},{"oauth":["events"]},{"oauth":["mcp"]}],"summary":"Send a delivery again","description":"The same event and the same X-Programmable-Id.","parameters":[{"name":"id","in":"path","required":true,"description":"The delivery's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"How it went.","content":{"application/json":{"schema":{"type":"object","properties":{"delivered":{"type":"boolean"},"status":{"type":["integer","null"]},"error":{"type":["string","null"]}}}}}},"401":{"description":"No key, or the key isn't recognized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key's limits refuse this, or it needs the owner or an admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such delivery.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests this hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/events":{"get":{"operationId":"eventCatalog","summary":"Every event, how it is signed and where to subscribe","security":[],"responses":{"200":{"description":"The catalog.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}}},"webhooks":{"lead.held":{"post":{"summary":"The AI reviewer held a company for a person to decide, instead of sending it to a tool.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"lead.held"},"data":{"type":"object","properties":{"held_id":{"type":"string","description":"The held lead's id (use it with POST /api/held/{id}).","format":"uuid"},"agent_id":{"type":["string","null"],"description":"The agent it came from, or null.","format":"uuid"},"domain":{"type":"string","description":"The company's website."},"destination":{"type":"string","description":"The tool it was held from, or sent to (e.g. instantly, hubspot)."},"reasons":{"type":"array","items":{"type":"string"},"description":"Why the reviewer held it, as codes (GET /api/held lists them with their wording)."},"receipt_id":{"type":["string","null"],"description":"The run that held it.","format":"uuid"}},"required":["held_id","agent_id","domain","destination","reasons","receipt_id"]}}}]}}}},"responses":{"200":{"description":"Received."}}}},"lead.approved":{"post":{"summary":"A held company was approved and its leads went into the tool it was held from.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"lead.approved"},"data":{"type":"object","properties":{"held_id":{"type":"string","description":"The held lead's id (use it with POST /api/held/{id}).","format":"uuid"},"agent_id":{"type":["string","null"],"description":"The agent it came from, or null.","format":"uuid"},"domain":{"type":"string","description":"The company's website."},"destination":{"type":"string","description":"The tool it was held from, or sent to (e.g. instantly, hubspot)."},"reasons":{"type":"array","items":{"type":"string"},"description":"Why the reviewer held it, as codes (GET /api/held lists them with their wording)."},"receipt_id":{"type":["string","null"],"description":"The run that sent it after approval.","format":"uuid"},"leads_added":{"type":"integer","description":"Leads that went into a cold-email campaign."},"sent":{"type":"integer","description":"Rows the tool took."}},"required":["held_id","agent_id","domain","destination","reasons","receipt_id","leads_added","sent"]}}}]}}}},"responses":{"200":{"description":"Received."}}}},"lead.discarded":{"post":{"summary":"A held company was discarded. Nothing was sent.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"lead.discarded"},"data":{"type":"object","properties":{"held_id":{"type":"string","description":"The held lead's id (use it with POST /api/held/{id}).","format":"uuid"},"agent_id":{"type":["string","null"],"description":"The agent it came from, or null.","format":"uuid"},"domain":{"type":"string","description":"The company's website."},"destination":{"type":"string","description":"The tool it was held from, or sent to (e.g. instantly, hubspot)."},"reasons":{"type":"array","items":{"type":"string"},"description":"Why the reviewer held it, as codes (GET /api/held lists them with their wording)."},"receipt_id":{"type":["string","null"],"description":"The run that held it.","format":"uuid"}},"required":["held_id","agent_id","domain","destination","reasons","receipt_id"]}}}]}}}},"responses":{"200":{"description":"Received."}}}},"agent.run.completed":{"post":{"summary":"An agent's run finished (from the app, its link, its schedule or the API). Counts only, never rows.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"agent.run.completed"},"data":{"type":"object","properties":{"run_id":{"type":"string","description":"The run's id.","format":"uuid"},"agent_id":{"type":"string","description":"The agent.","format":"uuid"},"source":{"type":"string","description":"What started it: agent, link, schedule, run or approved."},"status":{"type":"string","description":"How it ended.","enum":["done","failed"]},"receipt_id":{"type":["string","null"],"description":"The run's receipt, or null when it never started.","format":"uuid"},"summary":{"type":["object","null"],"properties":{"rows":{"type":"integer","description":"Rows the run produced."},"ok":{"type":"integer","description":"Rows that came back researched."},"failed":{"type":"integer","description":"Rows that couldn't be."},"held":{"type":"integer","description":"Leads the reviewer held."},"already_seen":{"type":"integer","description":"Companies skipped because an earlier run covered them."},"credits_charged":{"type":"integer","description":"Credits charged."},"credits_refunded":{"type":"integer","description":"Credits given back."},"leads_added":{"type":"integer","description":"Leads that went into a cold-email campaign."},"destinations":{"type":"array","description":"What each tool took.","items":{"type":"object","properties":{"destination":{"type":"string","description":"The tool."},"sent":{"type":"integer","description":"Rows it took."},"failed":{"type":"integer","description":"Rows it refused."}},"required":["destination","sent","failed"]}},"errors":{"type":"array","items":{"type":"string"},"description":"What went wrong, in words (at most 10)."},"out_of_credits":{"type":"boolean","description":"The account ran out of credits."},"nothing":{"type":"string","description":"Why nothing was kept, when nothing was."}},"required":["rows","ok","failed","held","already_seen","credits_charged","credits_refunded","leads_added","destinations","errors","out_of_credits"],"description":"Counts and tool names; null when the run left none."}},"required":["run_id","agent_id","source","status","receipt_id","summary"]}}}]}}}},"responses":{"200":{"description":"Received."}}}},"sheet.completed":{"post":{"summary":"A sheet finished. On an endpoint: its receipt and counts. On the CRM webhook it follows the row batches.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"sheet.completed"},"data":{"type":"object","properties":{"sheet":{"type":"object","properties":{"receipt":{"type":"string","description":"The sheet's receipt id.","format":"uuid"},"name":{"type":["string","null"],"description":"Its name, if it has one."},"kind":{"type":"string","description":"domains, people or products."}},"required":["receipt","name","kind"]},"summary":{"type":"object","properties":{"rows":{"type":"integer","description":"Rows in the sheet."},"ok":{"type":"integer","description":"Rows researched."},"failed":{"type":"integer","description":"Rows that failed."},"skipped":{"type":"integer","description":"Rows skipped."},"ms":{"type":"integer","description":"How long it took, in milliseconds."}},"required":["rows","ok","failed","skipped","ms"]}},"required":["sheet","summary"]}}}]}}}},"responses":{"200":{"description":"Received."}}}},"monitor.signals":{"post":{"summary":"A watch saw changes at the companies it follows.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"monitor.signals"},"data":{"type":"object","properties":{"monitor":{"type":"object","properties":{"id":{"type":"string","description":"The watch's id.","format":"uuid"},"name":{"type":["string","null"],"description":"Its name."},"kind":{"type":"string","description":"companies, stores, products or searches."}},"required":["id","name","kind"]},"signals":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string","description":"The company's website (for a search watch, the source it searched)."},"kind":{"type":"string","description":"What changed (e.g. hiring, tech, price, stock, new_companies)."},"text":{"type":"string","description":"The change in words."},"before":{"description":"The value before: any JSON value, or null."},"after":{"description":"The value now: any JSON value."}},"required":["domain","kind","text"]},"description":"Each change it saw."}},"required":["monitor","signals"]}}}]}}}},"responses":{"200":{"description":"Received."}}}},"webhook.test":{"post":{"summary":"Sent when you press Test, or POST /api/account/webhooks/{id}/test.","description":"Signed: X-Programmable-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. X-Programmable-Id names the delivery and is the same across retries. Answer 2xx within 15 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Event"},{"type":"object","properties":{"type":{"const":"webhook.test"},"data":{"type":"object","properties":{"message":{"type":"string","description":"A line of text."}},"required":["message"]}}}]}}}},"responses":{"200":{"description":"Received."}}}}}}