REST API module for Perfex CRM – Connect Apps and Automate Workflows with third party applications
What Is REST API Module for Perfex CRM? Technical Architecture Overview
REST API Module for Perfex CRM is a CodeIgniter-based server extension engineered to expose a complete HTTP/JSON API layer on top of a self-hosted Perfex CRM installation. Perfex CRM ships without any REST API, which historically forced businesses to commission custom backend code for every third-party connection, data synchronization, or automation task. The package resolves that bottleneck by operating over standard HTTP methods (GET, POST, PUT, DELETE) with conventional status codes, so any developer, HTTP client, or automation tool can read and manipulate CRM data in production, staging, or client-delivery environments without touching the core application.
REST API Module for Perfex CRM System Requirements & Technical Compatibility
| Parameter | Verified Specification |
|---|---|
| Base platform | Perfex CRM (self-hosted installation) |
| PHP version | PHP 8.x and PHP 7.x |
| Software framework | CodeIgniter |
| Included files | HTML, PHP, SQL |
| Protocol | HTTP/HTTPS, fully RESTful with JSON payloads |
| Delivery model | Module installed into your own Perfex CRM instance (no hosted middleman) |
API Engine, AI Tooling & Integration Capabilities
The engine exposes REST endpoints, an asynchronous webhook dispatcher, and an MCP server under a single token-permission model.
Verified Capabilities & Core Highlights
- REST endpoint coverage: Full CRUD operations across customers, contacts, invoices, credit notes, estimates, proposals, contracts, expenses, tasks, projects, leads, milestones, payments, tickets, timesheets, subscriptions, calendar events, notes, knowledge base articles, custom fields, and third-party custom module tables with per-table read/write permissions per API token.
- MCP server for AI agents: 148 CRM tools served over the Model Context Protocol (JSON-RPC 2.0 over Streamable HTTP), allowing Claude, ChatGPT, Cursor, and n8n AI Agents to search customers, create invoices, update leads, and manage tasks directly. Tool discovery and execution respect the API token permissions, so an agent can only access what its token allows. Teams layering conversational voice automation on the same stack can pair this with FexCall – Smart AI Call Assistant & Lead Automation Module for Perfex CRM to extend AI-driven engagement beyond text workflows.
- Webhooks 2.0: 124 events across 22 resource groups with asynchronous delivery, automatic retries, HMAC-signed payloads, SSRF protection, TLS verification, and a REST management API for creating, updating, toggling, and inspecting webhooks through delivery logs and an event catalog.
- OpenAPI 3.0 specification and tooling: The
GET /api/openapiendpoint publishes a machine-readable spec covering 74 paths, 144 operations, and 498 typed fields, importable into Postman, Insomnia, or Stoplight. A generated Postman collection of 144 requests across 25 folders and a built-in Swagger playground inside the admin area support interactive testing. - Operational safeguards: Batch operations execute up to 50 operations per request with continue-on-error behavior, Idempotency-Key support enables safe POST retries, X-RateLimit headers appear on every response, and brute-force protection guards failed authentications.
Additional engineering details include server-side invoice totals calculated from line items, sorting, field selection, and date-range filters on all list endpoints, tolerant partial updates that ignore unknown fields instead of returning server errors, and an optional staff-level data visibility mode configurable per token.
Implementation Scope, Customization & Deployment Boundaries
Deployment follows the standard Perfex module path: the package installs into your existing CRM instance, and the v3 Platform Settings panel lets administrators toggle every capability from the admin UI rather than editing configuration files. A one-click self-update mechanism with a daily version check keeps the module current, while automation connectors for Zapier, Make.com, and n8n support polling triggers and resource listing. An llms.txt index and a searchable API guide covering one page per endpoint, with cURL examples and parameter tables, provide the developer reference. The package adheres to standard module directory structures and requires no custom server daemons or background services beyond those the platform already provides. For teams extending outbound communication alongside API automation, integrating the Add-on SMS Manager Module for Perfex CRM adds SMS capability through the same modular architecture. Because API work assumes familiarity with HTTP concepts, the documentation advises involving a developer for complex integration projects.
Frequently Asked Questions
Does customer data pass through a hosted third-party service?
No. The module installs on your own Perfex CRM infrastructure, so requests are handled directly by your installation. There is no hosted middleman, no per-operation billing, and no usage-based monthly fee.
Can AI assistants access CRM records beyond what an API token permits?
No. MCP tool discovery and execution are permission-filtered per token. An AI agent using Claude, ChatGPT, Cursor, or n8n can only see and perform operations the assigned token explicitly allows.
Does the package include tooling for testing requests before writing integration code?
Yes. A built-in Swagger playground inside the admin area lets you fire real requests against your installation, and a generated Postman collection covers all 144 operations with two variables to configure.
-
v3.1.0 Latest