Skip to main content

SmartFence API

Connect SmartFence to your CRM, ERP, or custom workflows. Pull leads, update statuses, and manage company configuration — all via a simple REST API.

What You Can Build

Purpose-built endpoints for CRM and ERP integration

Lead Management

Create, retrieve, update, and delete leads. Pull full lead details including estimate data, contact info, and conversation history into your CRM.

Status Sync

Keep lead statuses in sync between SmartFence and your CRM. Update leads to contacted, quoted, won, or lost directly from your existing tools.

Company Configuration

Read and update your SmartFence company settings programmatically — pricing, fence specs, service areas, and more — without touching the admin dashboard.

Custom Reporting

Access raw lead and estimate data to build dashboards in your preferred BI tool. Filter by status, date range, lead source, and more.

Quick Start

Authenticate with your API key and start pulling data in minutes

# List leads for your company curl -X GET "https://go.smartfence.app/api/v1/leads/?company=your-company" \ -H "X-API-Key: YOUR_API_KEY" # Response { "success": true, "data": { "leads": [ { "reference_number": "EST-20260501-A3F2C1", "contact": { "firstName": "Jane", "email": "jane@example.com" }, "estimate": { "total_cost": 4800, "fence_type": "wood" }, "metadata": { "status": "new" } } ], "pagination": { "total": 42, "page": 1 } } }

Authentication

Your API key is a 32-character hex string found in Admin → Companies → Edit Company. Pass it as a request header:

# As a header (recommended) X-API-Key: YOUR_API_KEY # Also accepted Authorization: Bearer YOUR_API_KEY

Endpoints

Base URL: https://go.smartfence.app/api/v1

POST/leads/create.phpCreate a lead from an external system
GET/leads/List and search leads with filtering and pagination
GET/leads/show.phpGet a single lead by reference number
PUT/leads/update.phpUpdate lead status, notes, or contact info
DELETE/leads/Permanently delete a lead
GET/companies/config.phpGet full company configuration
PUT/companies/update.phpUpdate company settings and pricing

Full request/response schemas, parameter details, and interactive examples are in the API documentation →

Ready to Build an Integration?

Contact us to get your API key and access to full documentation