Working with integrations and API
Complete guide for integrating Loza CRM with landing pages, trackers, and external services. Webhooks, Postbacks, REST API, widgets, field automation, and ready-to-use code examples.
Introduction to Loza CRM API
https://api.connects.loza-crm.com · All requests require the header X-API-Key: YOUR_KEY, except public postback endpoints.Authentication
Every request to protected endpoints must contain the header X-API-Key. The key is located in the Integrations → API & Keys section.
System workflow
Webhooks
POST to your URL on every event. Use for Zapier, Make, n8n, or your own server.lead_createdstatus_changeddepositftdrejectfraud/postback/{api_key}— Postback from tracker/api/postback— Postback from broker/api/leads— Receive leadOutgoing webhook format
Content-Type: application/json. If a secret is specified — the X-Webhook-Secret header contains an HMAC-SHA256 signature of the body.Event types
lead_createdstatus_changeddepositftdrejectfraudSetting up a webhook in CRM
Integration catalog
CRM supports direct integrations with popular services. Setup takes a few minutes — each service has step-by-step instructions in the Integrations → Services section.
API Variations
https://api.connects.loza-crm.com. Protected endpoints require the X-API-Key header.POST /api/leads — receive a lead
The main endpoint. Called from the landing page when a visitor fills out a form. The lead instantly appears in CRM, gets linked to a campaign, and statistics are updated. CRM automatically calculates, finds, and fills in missing fields — country, language, geo tier, UTM tags, and other data are determined on the fly.
crm_uid and client_id. You only need to pass the first name and phone — CRM calculates the rest.Receiving leads via a single URL
https://api.connects.loza-crm.com/postback/YOUR_API_KEY?click_id=abc123&status=leadOne URL — and leads start flowing into CRM. Works with any tracker (Keitaro, Binom, Voluum, RedTrack, BeMob, etc.), broker networks, and custom solutions.
GET /api/leads — list leads
Get a list of leads with filtering. Requires authorization.
PUT /api/clients/:id — update status
Campaigns & WAT Tokens
Step 1 — Create a campaign (2 minutes)
Step 2 — Connect a landing page by URL
Step 3 — WAT token: linking and protection
Step 4 — Anti-fraud and campaign protection
Final workflow — 5 minutes to first leads
Postbacks
GET /postback/{api_key} — postback from tracker
https://api.connects.loza-crm.com/postback/{{api_key}}?click_id={{click_id}}&status={{status}}&payout={{payout}}https://api.connects.loza-crm.com/postback/KEY?click_id=abc123&status=deposit&payout=25https://api.connects.loza-crm.com/postback/KEY?click_id=abc123&status=ftd&payout=40https://api.connects.loza-crm.com/postback/KEY?click_id=abc123&status=rejecthttps://api.connects.loza-crm.com/postback/KEY?click_id=abc123&status=callbackWAT tokens
100% attributionPrecise conversion matchingLoss protectionWorks even without click_idAnti-fraudConversion authenticity checkUniversalCompatible with any trackerPOST /api/postback — postback from broker
click_id or crm_uid and updates the status.leadNew leaddepositMade a depositftdFirst deposit (FTD)rejectRejected / invalidcallbackRequests callbackinterestedInterestedWidgets & Forms
Widget generation
In the Integrations → Tools → Embed forms section you can create a widget with the required fields, configure the theme, language, button text, and success message. CRM will generate ready-to-use code for embedding on your site.
Embed code
The script loads from CDN and automatically renders the form on your website. All data is sent directly to CRM.
Widget parameters
Anti-fraud
Tracker script for landing page
To track clicks on your landing page — insert the tracker script. It sends data about every click to CRM via POST /api/click.
Clients & Data Fields
Automatically generated fields
crm_uidUnique client ID in CRM (lz12345678)autoclient_idInternal client IDautoclick_idClick ID from trackercountryDetermined by IP addressautolanguageDetermined by countryautogeo_tierTier 1/2/3 — calculated by countryautoip_addressVisitor IP addressautosourceTraffic sourceutm_*All UTM tags — extracted from URLautodate_creationLead creation date and timeautofraud_scoreFraud score (anti-fraud system)autoclient_typeType: real, demo, testautoFull list of lead fields
CRM works with the following fields. Some you provide, some CRM generates automatically.
click_idclient_idstatusnamedate_creationfirst_namelast_namemiddle_namephoneemailcountrylanguagegeo_tiersourcenetworklandingoffercampaign_namecrm_uidip_addresspayoutdeposit_amountdeposit_dateutm_sourceutm_mediumutm_campaignutm_termutm_contentClient management
Data import and export
Reference & Endpoints
https://api.connects.loza-crm.com · Auth: X-API-Key: YOUR_KEY in every protected request