CRM API

A CRM API with per-business keys and rate limiting, a webhook lead-capture endpoint and HMAC-signed outgoing webhooks. Wire Smarfle into your custom dashboards, internal tools or any third-party automation.

A short tour of the screens this page describes. It is filmed with our demo pest control company, and every trade runs on the same screens.

  • Live in 5 minutes
  • No setup fee
  • No long-term contract
Natalia, Pink Upholstery Cleaning
“We run every customer conversation through Smarfle. Texts, emails and reminders are in one place, our customers love paying with Apple Pay, and when we are busy or closed the text bot answers new leads for us.”
Natalia, owner of Pink Upholstery Cleaning, Orlando, FL

Get the Smarfle app

Download Smarfle on the App StoreGet Smarfle on Google Play

When data lives behind a wall

Every service business eventually wants something the CRM doesn't ship, a custom dashboard, a Zapier workflow, a lead pipe from their website. Without an API, you're stuck.

Vendor Lock-In

Without API access, your CRM is a black box. You can't run your own analytics, you can't sync to other tools, you can't automate the things only you would think to automate.

Lead Capture Is Manual

Your website form, your Google Ads landing page, your Facebook lead ad, every channel drops leads into a different inbox and your team retypes them into the CRM.

Integrations Need Webhooks

Modern automation tools (Zapier, Make, n8n) and internal scripts work on push, not pull. Without webhooks, every integration burns API calls polling for changes.

How the API plugs into your stack

  1. 1

    Generate an API Key

    From org settings, click Generate API Key. Smarfle issues a unique key scoped to your organization. Copy it once, it's hashed at rest and you can rotate it any time.

  2. 2

    Hit the Lead Capture Endpoint

    POST to /api/webhook/leads with your API key in the header and the lead's contact info. A client record auto-creates with status 'lead' and your team gets a notification.

  3. 3

    Subscribe to Outgoing Webhooks

    Add a webhook URL in org settings, pick which events to subscribe to (client_created, work_order_completed, invoice_paid, and 4 more), and Smarfle posts HMAC-signed payloads with retry on failure.

  4. 4

    Verify the Signature

    Every webhook payload is signed with HMAC-SHA256 using your secret. Verify the signature on receive to confirm the request is from Smarfle and not spoofed.

What the API exposes

Per-Org API Keys

Each organization issues and rotates its own API keys. Keys scope to the issuing org, no cross-tenant access, ever, even with a leaked key.

Lead Capture Endpoint

POST /api/webhook/leads accepts contact info from any source, your website form, Google Ads, Facebook, a paper form your receptionist transcribes. Auto-creates a client with status 'lead'.

7 Outgoing Webhook Events

client_created, client_updated, work_order_created, work_order_completed, invoice_sent, invoice_paid, and booking_received. Subscribe to all or just the ones you need.

HMAC-SHA256 Signatures

Every outgoing webhook is signed with HMAC-SHA256 using your shared secret. Verify on receive to reject spoofed requests.

Automatic Retry With Backoff

If your endpoint returns a non-2xx, Smarfle retries with exponential backoff up to 5 times before giving up. Failures are logged and visible in org settings.

Sliding-Window Rate Limiting

API endpoints run behind Upstash Redis sliding-window rate limits. One noisy script can't degrade the service for the rest of your team or other tenants.

cURL Examples in Settings

The API key page in org settings ships with copy-paste cURL examples for the lead capture endpoint and webhook subscription so you can test in 30 seconds.

A real API request and response

Real API and webhook usage from Smarfle service businesses running custom integrations.

This Month

24830

API Calls

142

Leads Captured

1847

Webhooks Delivered

  • Website Form → Lead

    94 leads from /contact in last 30 days

    Top source
  • Zapier: Job Complete → Slack

    247 deliveries, 0 failures

    Healthy
  • Custom Dashboard Sync

    Hourly polls for invoice paid events

    Active
  • Failed Delivery: ngrok endpoint

    Retried 5x, dropped after 24h

    Failed

API questions

Is the API REST or GraphQL?

REST. Standard HTTP verbs, JSON request and response bodies, predictable resource URLs. Works with any HTTP client in any language.

How do I authenticate?

Include your API key in the Authorization header as 'Bearer <key>' or in the X-API-Key header. Both work. Keys are scoped to your organization and can be rotated from org settings any time.

What happens if my webhook endpoint is down?

Smarfle retries with exponential backoff up to 5 attempts over 24 hours. Failures are logged in org settings so you can re-deliver manually once your endpoint is back up.

Can I test webhooks locally?

Yes. Point your webhook URL at an ngrok or webhook.site endpoint. Trigger a test event from org settings and verify the signature against your secret.

What's the rate limit?

Standard rate limits are sliding-window via Upstash Redis. Most workloads never hit them. If you have high-volume integration needs, contact support to discuss elevated limits.

Can I add more than leads through the API?

Yes. The REST API at /api/v1 reads customers, jobs, invoices and services, adds and updates customers, sends job requests your office confirms, and manages webhook subscriptions, with read-only or read and write keys. The same data is open to ChatGPT and Claude through the Smarfle connector. The reference is at smarfle.com/docs/api.

What API calls cost

All tiers

API Access Is Included

API keys, lead capture, and outgoing webhooks are included on every plan. Reading data is free; adding or changing records costs $0.003 per call, and standard pay-as-you-go rates apply to side effects (SMS or email a workflow sends).

$0.003 per API write, reads free

View all plans

Ready to try API Access?

Start your 14-day free trial. No credit card required.