Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API Reference
REST API endpoints and request/response schemas
Analyze customer overlap between multiple segments to identify redundancy and optimize targeting.
segmentIds
sampleSize
curl -X POST https://playground.kaireonai.com/api/v1/segments/overlap \ -H "Content-Type: application/json" \ -H "X-Tenant-Id: my-tenant" \ -d '{ "segmentIds": ["seg_001", "seg_002", "seg_003"], "sampleSize": 10000 }'
{ "segments": [ { "id": "seg_001", "name": "High Value", "size": 4200 }, { "id": "seg_002", "name": "Active Traders", "size": 3100 }, { "id": "seg_003", "name": "Premium Tier", "size": 1800 } ], "overlaps": [ { "segments": ["seg_001", "seg_002"], "count": 1250, "percent": 40 }, { "segments": ["seg_001", "seg_003"], "count": 1100, "percent": 61 }, { "segments": ["seg_002", "seg_003"], "count": 680, "percent": 38 } ], "totalUniqueCustomers": 6170, "overlapWarnings": [ "61% of Premium Tier customers are also in High Value — consider merging or adjusting targeting", "40% of Active Traders customers are also in High Value — consider merging or adjusting targeting", "38% of Premium Tier customers are also in Active Traders — consider merging or adjusting targeting" ] }
segments
overlaps
overlaps[].segments
overlaps[].count
overlaps[].percent
totalUniqueCustomers
overlapWarnings
400