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

GET
/api/openclaw/leads

List all leads with scores, quiz answers, and segments

POST
/api/openclaw/leads

Create a new lead (firstName, lastName, email, clinicName, practiceType, phone, customFields)

PUT
/api/openclaw/leads

Update an existing lead

GET
/api/openclaw/analytics

Pipeline metrics, conversion rates, engagement stats

GET
/api/openclaw/campaigns

List all campaign sequences

POST
/api/openclaw/campaigns

Create a campaign sequence (name, trigger_event, steps)

GET
/api/openclaw/touchpoints

Lead activity and interaction history

POST
/api/openclaw/touchpoints

Log a touchpoint (lead_id, channel, action, notes)

GET
/api/openclaw/followups

Email templates and actionable follow-up leads

POST
/api/openclaw/followups

Send a follow-up email to a lead

GET
/api/openclaw/quiz

Quiz configuration (modules: Profile, Tech, Pain Points, Authority, Budget, Goals)

PATCH
/api/openclaw/quiz

Modify quiz questions

GET
/api/openclaw/playbooks

SDR workflows and best practices

POST
/api/openclaw/playbooks

Get AI recommendation for a sales scenario

GET
/api/openclaw/integrations

List connected providers

POST
/api/openclaw/integrations

Add a provider (type, provider, name)

GET
/api/openclaw/health

Health check and debug info