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

# Dismiss Alert

Use this API to dismiss an alert so it no longer appears in the active list.

# Endpoint

`POST https://api.velt.dev/v2/memory/alerts/dismiss`

# Headers

**x-velt-api-key** `string` *required*

Your API key.

**x-velt-auth-token** `string` *required*

Your [Auth Token](https://velt.dev/docs/security/auth-tokens.md).

# Body

#### Params

**data** `object` *required*

**properties**

**alertId** `string` *required*

The alert to dismiss.

**user** `object`

`{ uid }`. The `uid` is recorded as the alert's `dismissedBy`. If you omit `user`, `dismissedBy` is stored as an empty string.

## **Example Requests**

#### Dismiss an alert

```JSON theme={null}
{
  "data": {
    "alertId": "alert_1",
    "user": {
      "uid": "user_1"
    }
  }
}
```

# Response

The response confirms the dismissal.

An `alertId` that does not exist returns a 500 `INTERNAL` error. Dismissing an already-dismissed alert succeeds and updates the dismissal timestamp.

#### Success Response

```JSON theme={null}
{
  "result": {
    "success": true
  }
}
```

#### Failure Response

```JSON theme={null}
{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
```

```js theme={null}
{
  "result": {
    "success": true
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.