نظام إدارة المبيعات والتسويق CairoSec CRM

n8n API Integration

Status

API is installed.

Token is stored on the server in: C:\Marketing-System\Secrets\n8n_api_token.txt

Token preview: crm_JUnT...viTSrU

Ping Test

GET /api/v1/ping/?token=YOUR_TOKEN

Create Lead

POST /api/v1/leads/create/

Header: X-CRM-API-TOKEN: YOUR_TOKEN

n8n HTTP Request Example

POST https://crm.cairosec.com/api/v1/leads/create/
Headers:
  X-CRM-API-TOKEN: YOUR_TOKEN
  Content-Type: application/json

Body:
{
  "customer_name": "Test Client",
  "phone": "01000000000",
  "whatsapp": "201000000000",
  "email": "client@example.com",
  "product": "Queue Management System",
  "website": "cairosec.com",
  "source": "n8n",
  "campaign": "whatsapp-bot",
  "expected_value": 10000,
  "notes": "Created from n8n workflow"
}

Other Endpoints

EndpointUse
/webhooks/n8n/lead/Alias for creating a lead
/api/v1/leads/<lead_id>/status/Update lead status from n8n
/api/v1/events/?token=YOUR_TOKENRead latest API events