CampaignHQ integration
CampaignHQ is an email marketing platform. With this API an agent can manage contact lists and their contacts (add or update one contact, or upload a CSV file and import it with a column mapping), create email campaigns, set their content, sender and schedule, send a test, start, pause, resume or unschedule them, send transactional emails from a template, manage verified senders (domains or addresses) and partner entities (sub-accounts used to group lists, campaigns and senders). Every route the vendor documents is exposed. Authentication is an API key created in CampaignHQ under Settings, Integrations, API Keys, sent as a Bearer token in the Authorization header.
Say what should happen.
The workflow builds itself.
What you can do with CampaignHQ
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Campaign, 5 operations
create_campaignCreate campaignPOSTAgents: ask firstCreates a draft email campaign with only a name. Returns it with its id; then set content, sender, lists and schedule with update_campaign before start_campaign.delete_campaignDelete campaignDELETEAgents: ask firstDeletes a campaign. Returns success and a message.get_campaignGet campaignGETAgents: ask firstGets one campaign: content, sender, schedule, aasmState, target lists and delivery statistics (rates and counts).list_campaignsList campaignsGETAgents: ask firstLists the email campaigns (paged: data, total, page, perPage, totalPages), filterable by partner_entity_id. The vendor documents only id and name per item: use get_campaign for content, state, schedule and statistics.update_campaignUpdate campaignPUTAgents: ask firstSets a campaign's content, sender, tracking, schedule and target lists. subject, from_email, from_name and html_body are required on every call: read them with get_campaign and send them back with your change.
Contact file, 2 operations
get_contact_file_statusGet contact file statusGETAgents: ask firstGets the import status of an uploaded contacts file: aasmState (pending, processing, completed), totalRecords, processedRecords, failedRecords and pctComplete.upload_contact_fileUpload contact filePOSTAgents: ask firstUploads a contacts file (CSV with a header row) to a list without importing it yet. Returns the file id and firstRow; then call start_contact_file_import with a header_mapping.
List, 2 operations
create_listCreate listPOSTAgents: ask firstCreates a contact list and returns it with its id (pass as list_id to the contact and file tools).list_listsList listsGETAgents: ask firstLists the contact lists of the account (paged: data, total, page, perPage, totalPages). Filter by partner_entity_id to get one sub-account's lists.
Partner entity, 2 operations
create_partner_entityCreate partner entityPOSTAgents: ask firstCreates a partner entity (a sub-account). Returns it with its id, to pass as partner_entity_id to the list, campaign and sender tools.list_partner_entitiesList partner entitiesGETAgents: ask firstLists the partner entities (sub-accounts used to group lists, campaigns and senders) of the account, paged: data, total, page, perPage, totalPages.
Transactional campaign, 2 operations
create_transactional_campaignCreate transactional campaignPOSTAgents: ask firstCreates a transactional campaign, a group for transactional emails. Returns it with its id, to pass as transactional_campaign_id to send_transactional_email.get_transactional_campaignGet transactional campaignGETAgents: ask firstGets a transactional campaign (a group under which transactional emails are reported) with its open, click, delivery, bounce and complaint rates.
Verified sender, 2 operations
create_verified_senderCreate verified senderPOSTAgents: ask firstAdds a sender domain or email address to verify. Returns it with status pending and, for a domain, the DNS records (DKIM, SPF, DMARC) to add; then call verify_sender.list_verified_sendersList verified sendersGETAgents: ask firstLists the verified senders (domains or email addresses) with their status and, for a domain, the DNS records to add. Filter by partner_entity_id.
Contact, 1 operation
list_contactsList contactsGETAgents: ask firstLists the contacts of one list (paged: data, total, page, perPage, totalPages), each with email, names, company, subscribed and custom fields.
Create or update, 1 operation
create_or_update_contactCreate or update contactPOSTAgents: ask firstAdds a contact to a list, or updates it when it already exists there. Returns the contact. custom_fields is an object of field name to value.
Import, 1 operation
start_contact_file_importStart contact file importPOSTAgents: ask firstStarts importing an uploaded contacts file into the list. Returns the file with aasmState processing; poll get_contact_file_status until aasmState is completed.
Pause, 1 operation
pause_campaignPause campaignPUTAgents: ask firstPauses a campaign that is sending. Returns the campaign; resume it with resume_campaign.
Resume, 1 operation
resume_campaignResume campaignPUTAgents: ask firstResumes a paused campaign. Returns the campaign.
Start, 1 operation
start_campaignStart campaignPOSTAgents: ask firstStarts the campaign: it sends to its lists now, or at the schedule set with update_campaign (schedule_date, schedule_time, timezone). Returns the campaign with its new aasmState.
Test, 1 operation
send_campaign_testSend campaign testPOSTAgents: ask firstSends one test email of the campaign to the address given in to_email. Returns success and a message.
Transactional email, 1 operation
send_transactional_emailSend transactional emailPOSTAgents: ask firstSends a transactional email from a template to one or more recipients now. Returns success and, per recipient, contactEmail, emailId and status (such as processed) or a reason.
Unschedule, 1 operation
unschedule_campaignUnschedule campaignPUTAgents: ask firstCancels the schedule of a scheduled campaign so it does not send. Returns the campaign.
Verify, 1 operation
verify_senderVerify senderPOSTAgents: ask firstChecks a sender's verification again (for a domain, whether its DNS records are in place). Returns the sender with its status and per-record status.
Use CampaignHQ from Claude Code, Cursor or Codex
Connect CampaignHQ in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its CampaignHQ operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect CampaignHQ
- Create your workspace
Sign up free. Nothing to install.
- Connect CampaignHQ once
Add your CampaignHQ connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
CampaignHQ integration FAQ
What can you do with the CampaignHQ integration?
LiveContext exposes 25 operations on CampaignHQ, covering campaign, contact file, list and partner entity.
