Skip to content

Validate IMAP

POST/web/v1/notification/email/validate/imapWEB

Validates an IMAP email server configuration by attempting to connect and authenticate.

Authentication

Requires a valid JWT token and Turnstile verification. Gateway validation: enableJwtToken=true, enableTurnstile=true.

Request Parameters

Query Parameters

NameTypeRequiredInDescription
requestIdstringYesqueryUnique request ID for idempotency/tracking

Request Body

EmailValidationRequest:

NameTypeRequiredInDescription
channelHoststringYesbodyNotification channel host/access endpoint
configobjectYesbodyEmail channel configuration to validate
config.usernamestringYesbodyIMAP authentication username
config.passwordstringYesbodyIMAP authentication password
config.imapHoststringYesbodyIMAP server hostname
config.imapPortintegerYesbodyIMAP server port (1-65535)
config.useSslbooleanNobodyUse SSL (default: true)
config.connectionTimeoutintegerNobodyConnection timeout in ms (default: 10000)
config.readTimeoutintegerNobodyRead timeout in ms (default: 30000)

Success Response

Success200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "valid": true,
    "results": {
      "IMAP": {
        "success": true,
        "serverHost": "imap.example.com",
        "serverPort": 993,
        "connectionTimeMs": 312,
        "errorCode": null,
        "errorMessage": null
      }
    }
  }
}

Error Responses

CodeDescription
4000Validation error (missing required config fields)
4010Unauthorized (invalid or missing JWT token)
4030Turnstile verification failed

Notes

  • This endpoint tests the IMAP connection only. Use the SMTP validation endpoint to test SMTP connectivity.
  • The requestId query parameter can be used for idempotency and request tracking.
  • A successful validation does not create or modify any channel.

Internal Documentation