cURL
curl --request POST \ --url http://api.gu1.ai/intelligence/alerts/{id}/acknowledge \ --header 'Authorization: Bearer <token>'
{ "success": true, "alertId": "<string>", "status": "<string>", "message": "<string>" }
Mark an alert as acknowledged
ACKNOWLEDGED
POST http://api.gu1.ai/intelligence/alerts/{id}/acknowledge
Authorization: Bearer YOUR_API_KEY
curl -X POST http://api.gu1.ai/intelligence/alerts/alert-uuid-123/acknowledge \ -H "Authorization: Bearer YOUR_API_KEY"
{ "success": true, "alertId": "alert-uuid-123", "status": "ACKNOWLEDGED", "message": "Alert acknowledged successfully" }
async function acknowledgeAndAssign(alertId, assigneeId) { // First, acknowledge the alert const ackResponse = await fetch( `http://api.gu1.ai/intelligence/alerts/${alertId}/acknowledge`, { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY' } } ); if (!ackResponse.ok) { throw new Error('Failed to acknowledge alert'); } // Then assign to investigation console.log(`Alert ${alertId} acknowledged and ready for investigation`); return await ackResponse.json(); }
{ "error": "Alert not found", "alertId": "alert-uuid-123" }
{ "error": "Alert already acknowledged", "currentStatus": "ACKNOWLEDGED" }
Was this page helpful?