Core API Endpoints
Authentication
POST
/api/auth/login
Authenticate with email & password. Returns JWT token.
GET
/api/auth/me
Get current user profile and permissions.
POST
/api/auth/logout
Invalidate current session token.
Core CRM Resources
GET
/api/contacts
List all contacts with search & pagination.
POST
/api/contacts
Create a new contact record.
GET
/api/companies
List all companies with filters.
POST
/api/companies
Create a new company profile.
GET
/api/deals
View all deals with stage filters.
POST
/api/deals
Create a new deal record.
PUT
/api/deals/:id
Update deal details and move stages.
Sales Operations
GET
/api/pipeline
View complete sales pipeline with deal analytics.
GET
/api/dashboard
Get analytics overview with key metrics.
GET
/api/analytics/overview
Detailed business intelligence dashboard.
GET
/api/quotes
Manage customer quotes and proposals.
GET
/api/activities
Track all customer interactions and activities.
GET
/api/goals
Define and track team and company goals.
Content & Automation
GET
/api/email-templates
Email templates for campaigns and outreach.
GET
/api/campaigns
Create and manage marketing campaigns.
GET
/api/segments
Define customer segments for targeting.
GET
/api/forms
Manage web forms and lead capture.
GET
/api/sequences
Automated workflow sequences.
GET
/api/lead-scoring
Lead scoring rules and qualification.
Administration
POST
/api/migrate
Initialize database schema and seed demo data.
GET
/api/notes
Contact and deal notes management.
GET
/api/tickets
Support ticket tracking system.
GET
/api/tags
Organization tags and categorization.
GET
/api/webhooks
Event webhooks and integrations.
GET
/api/files
Document and file management.
Enterprise Features
Multi-Tenant Architecture
Complete data isolation per tenant with secure isolation at database level.
JWT Authentication
Industry-standard token-based authentication with role-based access control.
Full CORS Support
Cross-origin requests enabled for seamless frontend integration.
Advanced Search
Full-text search across contacts, companies, and deals.
Pagination
Efficient data loading with configurable page sizes and cursors.
Comprehensive Logging
Complete audit trail of all operations for compliance and troubleshooting.
Quick Start
1. Initialize database:
POST /api/migrate
2. Get authentication token:
POST /api/auth/login
Content-Type: application/json
{
"email": "admin@manzicrm.com",
"password": "admin123"
}
3. Use token for API calls:
Authorization: Bearer {token}