---
title: "Test IMAP connectivity"
method: POST
path: "/v3/email-accounts/test/imap"
tags: ["Email Accounts"]
---

# Test IMAP connectivity

`POST /v3/email-accounts/test/imap`

<small>_Requires the `channels:operate` scope (or a broader one that includes it)._</small>

Tests connectivity to an IMAP server with the provided credentials without creating an email account.

## Request body

- object — Request body for testing SMTP or IMAP connectivity.
  - `host` string, required — Hostname or IP address of the mail server
  - `port` integer, required — Port number of the mail server
  - `enableSsl` boolean — Whether to use SSL/TLS for the connection
  - `userName` string, required — Username for authentication
  - `password` string, required — Password for authentication

## Response `200`

Test result

- object — Result of a mail server connectivity test.
  - `success` boolean, required — Whether the connection test was successful
  - `error` string, nullable — Error message if the test failed, null if successful

## Other responses

- `400` — Validation failure on the request body, or a business rule rejection.
- `401` — Unauthorized. The response body is empty; check the `WWW-Authenticate` header for the expected scheme.
- `403` — User lacks required feature scope to test connectivity
- `429` — Too Many Requests

---

[API](https://skmtc.net/reply/apis/reply-api.md) · [All operations](https://skmtc.net/reply/apis/reply-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reply/reply-api/versions/1c3d32eaf95e/schema)
