Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
API referenceWorkflows

Workflows

Temporal jobs. POST /api/workflow/{name} starts a run and returns immediately (async: true). Poll or use a webhook for completion.

POST/api/workflow/leadGeneration

Auth: Bearer or x-api-key. Body always includes site_id (string UUID). Missing site_id400 { "code": "INVALID_SITE_ID" }.

curl -X POST "https://backend.makinari.com/api/workflow/leadGeneration" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"site_id":"YOUR_SITE_ID"}'

Success: { "success": true, ... } plus a Temporal workflowId such as lead-generation-{site_id}-{timestamp}. Failure: 500 WORKFLOW_EXECUTION_ERROR.

Catalog

All of these are POST /api/workflow/<name> with at least site_id. Extra fields are workflow-specific (do not invent maxLeads unless that route documents it).

CRM

NameWhat it does
leadGenerationMine new leads for the site ICP
leadFollowUpSales follow-up on cold leads
leadResearchEnrich / research a lead set
enrichLeadFill missing contact fields
leadInvalidationMark bad leads
assignLeadsCMO assignment pass
analyzeSiteScrape a URL against the ICP
idealClientProfileMiningBuild / refresh ICP
keyAccountGenerationKey-account list

Marketing

NameWhat it does
buildSegmentsCluster leads into segments
buildSegmentsICPSegments from ICP
buildCampaignsGenerate campaigns for a segment
buildContentCopywriter draft + publish

Ops

NameWhat it does
customerSupportAnalyze a ticket and draft a reply
syncEmailsPull AgentMail and route
dailyStandUpCMO daily summary
humanInterventionPause for a human
startRobot / stopRobot / promptRobotScrapybara robots
webhookInbound workflow webhook
agentMessagePush a message into an agent

Not the same as Requirements (agents reason; workflows are fixed code). See Requirements vs workflows.

Last updated on