API Documentation
ClawCRM exposes a REST API under /api/openclaw/* for AI agents and integrations.
🔐 Authentication
All endpoints require the x-admin-token header.
curl -H "x-admin-token: YOUR_TOKEN" \ https://clawcrm.ai/api/openclaw/leads
📝 Examples
Create a Lead
curl -X POST https://clawcrm.ai/api/openclaw/leads \
-H "x-admin-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Jane",
"lastName": "Doe",
"email": "jane@example.com",
"clinicName": "Doe Health",
"practiceType": "primary-care"
}'Log a Touchpoint
curl -X POST https://clawcrm.ai/api/openclaw/touchpoints \
-H "x-admin-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lead_id": "lead_123",
"channel": "email",
"action": "sent_followup",
"notes": "Sent pricing info"
}'Get Analytics
curl https://clawcrm.ai/api/openclaw/analytics \ -H "x-admin-token: YOUR_TOKEN"
Endpoints
/api/openclaw/leadsList all leads with scores, quiz answers, and segments
/api/openclaw/leadsCreate a new lead (firstName, lastName, email, clinicName, practiceType, phone, customFields)
/api/openclaw/leadsUpdate an existing lead
/api/openclaw/analyticsPipeline metrics, conversion rates, engagement stats
/api/openclaw/campaignsList all campaign sequences
/api/openclaw/campaignsCreate a campaign sequence (name, trigger_event, steps)
/api/openclaw/touchpointsLead activity and interaction history
/api/openclaw/touchpointsLog a touchpoint (lead_id, channel, action, notes)
/api/openclaw/followupsEmail templates and actionable follow-up leads
/api/openclaw/followupsSend a follow-up email to a lead
/api/openclaw/quizQuiz configuration (modules: Profile, Tech, Pain Points, Authority, Budget, Goals)
/api/openclaw/quizModify quiz questions
/api/openclaw/playbooksSDR workflows and best practices
/api/openclaw/playbooksGet AI recommendation for a sales scenario
/api/openclaw/integrationsList connected providers
/api/openclaw/integrationsAdd a provider (type, provider, name)
/api/openclaw/healthHealth check and debug info