Acknowledge Alert
curl --request POST \
--url http://api.gu1.ai/intelligence/alerts/{id}/acknowledge \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/intelligence/alerts/{id}/acknowledge"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/intelligence/alerts/{id}/acknowledge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.gu1.ai/intelligence/alerts/{id}/acknowledge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api.gu1.ai/intelligence/alerts/{id}/acknowledge"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://api.gu1.ai/intelligence/alerts/{id}/acknowledge")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/intelligence/alerts/{id}/acknowledge")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"alertId": "<string>",
"status": "<string>",
"message": "<string>"
}API Reference
Acknowledge Alert
Mark an alert as acknowledged β using the gu1 alerts API for risk and compliance workflows, with examples for acknowledge use cases.
POST
/
intelligence
/
alerts
/
{id}
/
acknowledge
Acknowledge Alert
curl --request POST \
--url http://api.gu1.ai/intelligence/alerts/{id}/acknowledge \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/intelligence/alerts/{id}/acknowledge"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/intelligence/alerts/{id}/acknowledge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.gu1.ai/intelligence/alerts/{id}/acknowledge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api.gu1.ai/intelligence/alerts/{id}/acknowledge"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://api.gu1.ai/intelligence/alerts/{id}/acknowledge")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/intelligence/alerts/{id}/acknowledge")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"alertId": "<string>",
"status": "<string>",
"message": "<string>"
}Overview
Acknowledges an alert, indicating that it has been reviewed by the compliance team. This updates the alert status toACKNOWLEDGED.
Endpoint
POST http://api.gu1.ai/intelligence/alerts/{id}/acknowledge
Authentication
Requires a valid API key in the Authorization header:Authorization: Bearer YOUR_API_KEY
Path Parameters
string
required
UUID of the alert to acknowledge
Response
boolean
Whether the operation was successful
string
UUID of the acknowledged alert
string
New status (ACKNOWLEDGED)
string
Success message
Example Request
curl -X POST http://api.gu1.ai/intelligence/alerts/alert-uuid-123/acknowledge \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'http://api.gu1.ai/intelligence/alerts/alert-uuid-123/acknowledge',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data.message);
import requests
response = requests.post(
'http://api.gu1.ai/intelligence/alerts/alert-uuid-123/acknowledge',
headers={
'Authorization': 'Bearer YOUR_API_KEY'
}
)
data = response.json()
print(data['message'])
Response Example
{
"success": true,
"alertId": "alert-uuid-123",
"status": "ACKNOWLEDGED",
"message": "Alert acknowledged successfully"
}
Use Cases
Acknowledge Alert in Workflow
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 Responses
404 Not Found
{
"error": "Alert not found",
"alertId": "alert-uuid-123"
}
400 Bad Request
{
"error": "Alert already acknowledged",
"currentStatus": "ACKNOWLEDGED"
}
See Also
Was this page helpful?
βI