API Usage
fetch('/api/extract', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-api-key': 'your-key' },
body: JSON.stringify({ text: 'new 2024 Ford F-150 Lariat 4WD', caller: 'nexusDealer' })
})
.then(r => r.json())
.then(d => console.log(d.entities));
Response Shape
{
"entities": { "MAKE": "Honda", "MODEL": "Accord", "TRIM": "Sport", … },
"latency_ms": 24,
"text_length": 58
}