---
title: "Refresh spam database REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Refresh spam database, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiadminsystemspam-filterrefresh/"
---

# Refresh spam database REST API

POST

/api/admin/system/spam-filter/refresh

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/admin/system/spam-filter/refresh';
const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request POST \
  --url http://127.0.0.1:25737/api/admin/system/spam-filter/refresh \
  --cookie hk_token=<hk_token>
```

-

Downloads and rebuilds the spam database from the configured feeds. Writes an instance audit log entry with the actor and outcome.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Responses

### 200

Refresh result

application/json

object

**message**

string

**status**

string

##### Examplegenerated

```
{
  "message": "example",
  "status": "example"
}
```

### 503

Spam filter not available

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

[Previous Get spam filter status](https://hitkeep.com/api/operations/apiadminsystemspam-filter/)[Next Get system storage](https://hitkeep.com/api/operations/apiadminsystemstorage/)
