> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Acknowledge Alert

> Mark an alert as acknowledged — using the gu1 alerts API for risk and compliance workflows, with examples for acknowledge use cases.

## Overview

Acknowledges an alert, indicating that it has been reviewed by the compliance team. This updates the alert status to `ACKNOWLEDGED`.

## Endpoint

```
POST http://api.gu1.ai/intelligence/alerts/{id}/acknowledge
```

## Authentication

Requires a valid API key in the Authorization header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the alert to acknowledge
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the operation was successful
</ResponseField>

<ResponseField name="alertId" type="string">
  UUID of the acknowledged alert
</ResponseField>

<ResponseField name="status" type="string">
  New status (ACKNOWLEDGED)
</ResponseField>

<ResponseField name="message" type="string">
  Success message
</ResponseField>

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST http://api.gu1.ai/intelligence/alerts/alert-uuid-123/acknowledge \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  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);
  ```

  ```python Python theme={null}
  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'])
  ```
</CodeGroup>

## Response Example

```json theme={null}
{
  "success": true,
  "alertId": "alert-uuid-123",
  "status": "ACKNOWLEDGED",
  "message": "Alert acknowledged successfully"
}
```

## Use Cases

### Acknowledge Alert in Workflow

```javascript theme={null}
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

```json theme={null}
{
  "error": "Alert not found",
  "alertId": "alert-uuid-123"
}
```

### 400 Bad Request

```json theme={null}
{
  "error": "Alert already acknowledged",
  "currentStatus": "ACKNOWLEDGED"
}
```

## See Also

* [List Alerts](/en/api-reference/alerts/list)
* [Resolve Alert](/en/api-reference/alerts/resolve)
* [Mark as False Positive](/en/api-reference/alerts/false-positive)
