API Reference
The Heffl API lets you programmatically access and manage your CRM, sales, and project data. Use it to build custom integrations, sync data with external systems, or automate workflows.Base URL
Authentication
Every request must include your API key in thex-api-key header:
Request format
- All request bodies must be JSON with
Content-Type: application/json - Query parameters are used for filtering and pagination on list endpoints
- Resource IDs in URLs are string-based public IDs (e.g.,
ld_abc123) for leads, clients, and deals. Task IDs are numeric.
Example: Create a lead
Response format
All responses return JSON. Successful responses include the data directly: Single resource:Pagination
List endpoints support pagination with these query parameters:| Parameter | Type | Default | Description |
|---|---|---|---|
pageNo | number | 1 | Page number (1-indexed) |
pageSize | number | 20 | Items per page (max 100) |
Error handling
Error responses include a descriptive message:Error codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid API key |
FORBIDDEN | 403 | API key valid but lacks permission |
NOT_FOUND | 404 | Resource does not exist |
BAD_REQUEST | 400 | Invalid request parameters |
TOO_MANY_REQUESTS | 429 | Rate limit exceeded |
Rate limiting
API requests are rate limited to 60 requests per minute per API key. If you exceed the limit, you’ll receive a429 response with RateLimit-* headers indicating your current usage and reset time. Include retry logic with exponential backoff in your integration.
Custom fields
Entities that support custom fields (leads, deals) accept them via thecf_ prefix in create and update requests:
cf_).
Available resources
CRM
| Resource | Operations |
|---|---|
| Leads | Create, List, Get, Update, Delete |
| Clients | Create, List, Get, Update, Delete |
| Deals | Create, List, Get, Update, Delete |
| Tasks | Create, List, Get, Update, Delete |
Reference data
| Resource | Operations |
|---|---|
| Tags | List |
| Pipelines | List, Get |
| Products | List, Get |
| Lead Stages | List |
| Lead Sources | List |
Webhooks
| Resource | Description |
|---|---|
| Webhooks | Setup, security, delivery |
| Webhook Events | Event catalog with payloads |
SDKs and tools
The Heffl API follows REST conventions and works with any HTTP client. Use tools like:- cURL for command-line testing
- Postman for interactive exploration
- Zapier / Make for no-code integrations
- Any HTTP library in your programming language of choice