const options = {
headers: { 'Content-Type': 'application/json' },
method: 'POST',
body: JSON.stringify({
eventId: '12345',
eventType: 'AGENT_STATE_CHANGE',
payload: { agentId: '98765', newState: 'Available' }
})
};
The webhook is returning a 403 Forbidden for AGENT_STATE_CHANGE events but works FINE for routing events. This is running on Node.js v18.16.0 and the subscription is active in Event Hub. The API key has all the right permissions. anyone seen this?