---
title: "Send test email REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Send test email, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiadminsystemmailtest/"
---

# Send test email REST API

POST

/api/admin/system/mail/test

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/admin/system/mail/test';
const options = {
  method: 'POST',
  headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'},
  body: '{"email":"hello@example.com"}'
};

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/mail/test \
  --header 'Content-Type: application/json' \
  --cookie hk_token=<hk_token> \
  --data '{ "email": "hello@example.com" }'
```

-

Sends a real test email to the specified recipient using the configured mail transport. Writes an instance audit log entry with the actor and outcome.

## Authorizations

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

## Request Bodyrequired

application/json

object

**email**

string format: email

##### Examplegenerated

```
{
  "email": "hello@example.com"
}
```

## Responses

### 200

Mail test result

application/json

object

**message**

string

**status**

string

##### Examplegenerated

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

### 400

Invalid recipient

application/json

object

**message**

string

##### Examplegenerated

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

### 503

Mailer not configured

application/json

object

**message**

string

##### Examplegenerated

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

[Previous Get mail status](https://hitkeep.com/api/operations/apiadminsystemmail/)[Next Get system report](https://hitkeep.com/api/operations/apiadminsystemreport/)
