{"openapi":"3.1.0","info":{"title":"Acquento API","version":"1.0.0","description":"Read campaigns, leads, conversations and analytics, and act on them, from your own tools or from an AI agent. Keys are created in the Acquento app under Settings → API & MCP."},"servers":[{"url":"https://api.acquento.com"}],"tags":[{"name":"Workspace"},{"name":"Campaigns"},{"name":"Leads"},{"name":"Inbox"},{"name":"Analytics"},{"name":"Do-not-contact"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your key, e.g. `aq_r_…` (read) or `aq_w_…` (read & write)."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}},"paths":{"/v1/workspace":{"get":{"operationId":"get_workspace","tags":["Workspace"],"summary":"Get the workspace this key belongs to","description":"Returns the workspace name and whether sending is active. Sending pauses when the workspace has no active subscription; reads keep working.\n\nRequires a **read** key.","security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"id":"cmv7…","name":"Acme Outbound","sending_active":true}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/accounts":{"get":{"operationId":"list_accounts","tags":["Workspace"],"summary":"List the connected LinkedIn accounts","description":"The LinkedIn accounts campaigns send from, with their connection status and daily limits. Credentials and provider identifiers are never returned. Connecting or removing accounts is only possible in the app.\n\nRequires a **read** key.","security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"accounts":[{"id":"cmv7…","name":"Jane Doe","status":"connected","daily_limits":{"connections":20,"messages":30}}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/campaigns":{"get":{"operationId":"list_campaigns","tags":["Campaigns"],"summary":"List campaigns","description":"Every campaign in the workspace, newest first, with headline numbers.\n\nRequires a **read** key.","security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"campaigns":[{"id":"cmw1…","name":"Founders, DACH","status":"active","created_at":"2026-11-02T09:00:00.000Z","leads":412,"accepted":187,"replied":41}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/campaigns/{id}":{"get":{"operationId":"get_campaign","tags":["Campaigns"],"summary":"Get one campaign with its steps","description":"The campaign, its sending schedule and its sequence of steps (invitation, messages, delays).\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The campaign id.","schema":{"type":"string","description":"The campaign id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"id":"cmw1…","name":"Founders, DACH","status":"active","timezone":"Europe/Berlin","active_days":[1,2,3,4,5],"start_hour":9,"end_hour":18,"steps":[{"order":1,"type":"CONNECT","delay_hours":0,"templates":["Hi {{first_name}}, …"]}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/campaigns/{id}/leads":{"get":{"operationId":"list_campaign_leads","tags":["Campaigns"],"summary":"List a campaign's leads and where each one is","description":"Each lead with its status (pending, connected, replied…), tags and, once they have replied, the AI-read sentiment and a one-line summary. Newest first.\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The campaign id.","schema":{"type":"string","description":"The campaign id."}},{"name":"limit","in":"query","required":false,"description":"How many to return (1–200).","schema":{"type":"integer","description":"How many to return (1–200).","default":50,"maximum":200,"minimum":1}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for paging.","schema":{"type":"integer","description":"How many to skip, for paging.","default":0}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"total":412,"leads":[{"id":"cmx…","linkedin_url":"https://www.linkedin.com/in/jane","first_name":"Jane","last_name":"Doe","title":"CEO","company":"Acme","status":"replied","tags":["interested"],"reply_sentiment":"positive","reply_summary":"Asks for pricing."}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}},"post":{"operationId":"add_campaign_leads","tags":["Campaigns"],"summary":"Add leads to a campaign","description":"Adds up to 500 leads. It goes through the same import as the app: the do-not-contact list, duplicate checks and the daily limits all apply, and nothing is sent to LinkedIn at import time. The response says how many were added and why the rest were skipped.\n\nRequires a **read & write** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The campaign id.","schema":{"type":"string","description":"The campaign id."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leads":{"type":"array","description":"Up to 500 leads. Each needs a linkedin_url; the rest is optional. variables become {{custom}} fields in your templates.","items":{"type":"object","properties":{"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"company":{"type":"string"},"title":{"type":"string"},"country":{"type":"string"},"variables":{"type":"object","additionalProperties":{"type":"string"}}},"required":["linkedin_url"]},"examples":[[{"linkedin_url":"https://www.linkedin.com/in/jane","first_name":"Jane","company":"Acme","variables":{"trigger":"just raised a Series A"}}]]}},"required":["leads"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"received":1,"added":1,"skipped_already_in_a_campaign":0,"skipped_no_valid_url":0,"skipped_do_not_contact":0}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has no active subscription."},"403":{"description":"The key is read-only."},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/campaigns/{id}/status":{"post":{"operationId":"set_campaign_status","tags":["Campaigns"],"summary":"Start or pause a campaign","description":"Setting \"active\" is refused with the reasons when the campaign is not ready to launch (no sender, no steps, and so on).\n\nRequires a **read & write** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The campaign id.","schema":{"type":"string","description":"The campaign id."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"The new status.","enum":["active","paused"]}},"required":["status"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"id":"cmw1…","status":"paused"}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has no active subscription."},"403":{"description":"The key is read-only."},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/contacts":{"get":{"operationId":"list_contacts","tags":["Leads"],"summary":"Search contacts","description":"Every person in the workspace, whether or not they are in a campaign. `q` matches name, company, title and LinkedIn URL.\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"description":"Search text.","schema":{"type":"string","description":"Search text."}},{"name":"limit","in":"query","required":false,"description":"How many to return (1–200).","schema":{"type":"integer","description":"How many to return (1–200).","default":50,"maximum":200,"minimum":1}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for paging.","schema":{"type":"integer","description":"How many to skip, for paging.","default":0}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"total":1,"contacts":[{"id":"cmy…","first_name":"Jane","last_name":"Doe","title":"CEO","company":"Acme","linkedin_url":"https://www.linkedin.com/in/jane","location":"Berlin","email":null}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/leads/{id}/tags":{"post":{"operationId":"set_lead_tags","tags":["Leads"],"summary":"Set the outcome tags on a lead","description":"Replaces the lead's whole tag list (at most 8). `id` is the lead id from the campaign leads list. Adding \"interested\" emails the workspace and fires the CRM webhook, exactly as tagging in the app does.\n\nRequires a **read & write** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The lead id.","schema":{"type":"string","description":"The lead id."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","description":"The complete list of tags, e.g. [\"interested\", \"meeting_booked\"].","items":{"type":"string"},"examples":[["interested"]]}},"required":["tags"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"ok":true,"tags":["interested"]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has no active subscription."},"403":{"description":"The key is read-only."},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/inbox/threads":{"get":{"operationId":"list_threads","tags":["Inbox"],"summary":"List inbox conversations","description":"LinkedIn conversations across the workspace's accounts, most recent first. `filter`: `replied` = the lead wrote last (waiting on you), `awaiting` = you wrote last, `unread`, or `all`. Conversations that belong to a campaign lead include their tags, sentiment and summary.\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"description":"Which conversations.","schema":{"type":"string","description":"Which conversations.","enum":["all","replied","awaiting","unread"],"default":"all"}},{"name":"limit","in":"query","required":false,"description":"How many to return (1–100).","schema":{"type":"integer","description":"How many to return (1–100).","default":30,"maximum":100,"minimum":1}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for paging.","schema":{"type":"integer","description":"How many to skip, for paging.","default":0}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"total":1,"threads":[{"id":"cmz…","name":"Jane Doe","headline":"CEO at Acme","linkedin_url":"https://www.linkedin.com/in/jane","account":"Andreas Falsig","unread":true,"last_message_at":"2026-11-23T08:59:45.000Z","last_message_text":"Sounds good, send it over","last_from_me":false,"lead":{"id":"cmx…","tags":["interested"],"sentiment":"positive","summary":"Wants the plan.","campaigns":["Founders, DACH"]}}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/inbox/threads/{id}":{"get":{"operationId":"get_thread","tags":["Inbox"],"summary":"Read a conversation","description":"One conversation with its messages, oldest first. Messages come from what Acquento has already synced from LinkedIn.\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The conversation id.","schema":{"type":"string","description":"The conversation id."}},{"name":"limit","in":"query","required":false,"description":"How many to return (1–200).","schema":{"type":"integer","description":"How many to return (1–200).","default":100,"maximum":200,"minimum":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"id":"cmz…","name":"Jane Doe","headline":"CEO at Acme","linkedin_url":"https://www.linkedin.com/in/jane","account":"Andreas Falsig","messages":[{"id":"m1","from_me":true,"text":"Hi Jane, …","sent_at":"2026-11-20T09:00:00.000Z"}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/inbox/threads/{id}/reply":{"post":{"operationId":"reply_to_thread","tags":["Inbox"],"summary":"Send a message in a conversation","description":"Sends a real LinkedIn message from the account that holds the conversation. It counts against that account's daily messaging allowance, and is refused when the account is disconnected or the workspace has no active subscription. Nothing is sent if it fails, so retrying is safe.\n\nRequires a **read & write** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The conversation id.","schema":{"type":"string","description":"The conversation id."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"The message text.","examples":["Thanks Jane, here is the plan: …"]}},"required":["text"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"ok":true,"warning":null}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has no active subscription."},"403":{"description":"The key is read-only."},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/analytics":{"get":{"operationId":"get_analytics","tags":["Analytics"],"summary":"Outreach analytics for a period","description":"Funnel numbers, a daily series, reply sentiment and intent, timing and breakdowns by campaign, seniority, country and company, for leads first invited in the period. Dates are inclusive, `YYYY-MM-DD`. Defaults to the last 30 days.\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"description":"Start date, YYYY-MM-DD.","schema":{"type":"string","description":"Start date, YYYY-MM-DD.","examples":["2026-11-01"]}},{"name":"to","in":"query","required":false,"description":"End date, YYYY-MM-DD.","schema":{"type":"string","description":"End date, YYYY-MM-DD.","examples":["2026-11-23"]}},{"name":"tz","in":"query","required":false,"description":"IANA timezone for day boundaries.","schema":{"type":"string","description":"IANA timezone for day boundaries.","default":"UTC","examples":["Europe/Copenhagen"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"cohort":{"invited":834,"accepted":328,"messaged":311,"replied":143},"series":[{"date":"2026-11-22","invites":31,"accepted":12,"messages":9,"replies":4}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/suppression":{"get":{"operationId":"list_suppression","tags":["Do-not-contact"],"summary":"List the do-not-contact list","description":"Profiles and companies that campaigns will never contact.\n\nRequires a **read** key.","security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many to return (1–1000).","schema":{"type":"integer","description":"How many to return (1–1000).","default":200,"maximum":1000,"minimum":1}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for paging.","schema":{"type":"integer","description":"How many to skip, for paging.","default":0}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"total":1,"entries":[{"id":"cms…","kind":"company","value":"acme inc","note":null,"created_at":"2026-11-01T10:00:00.000Z"}]}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}},"post":{"operationId":"add_suppression","tags":["Do-not-contact"],"summary":"Add to the do-not-contact list","description":"Adds LinkedIn profile URLs or company names (up to 1000 per request). Anyone already queued who matches is stopped the next time the sender reaches them.\n\nRequires a **read & write** key.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","description":"LinkedIn profile URLs or company names.","items":{"type":"string"},"examples":[["https://www.linkedin.com/in/jane","Acme Inc"]]},"note":{"type":"string","description":"Optional note shown in the app."}},"required":["entries"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"added":2,"already_on_list":0,"ignored":0}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has no active subscription."},"403":{"description":"The key is read-only."},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}},"/v1/suppression/{id}":{"delete":{"operationId":"remove_suppression","tags":["Do-not-contact"],"summary":"Remove an entry from the do-not-contact list","description":"Removes one entry by id (from the list endpoint).\n\nRequires a **read & write** key.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The entry id.","schema":{"type":"string","description":"The entry id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"ok":true}}}},"400":{"description":"The request was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has no active subscription."},"403":{"description":"The key is read-only."},"404":{"description":"Not found, or not in this workspace."},"429":{"description":"Over 120 requests a minute for this key."}}}}}}