Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/mail-server/test-connection
curl \
--request POST 'https://wyzio.app/api-v1/mail-server/test-connection' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '{"id":42,"host":"string","port":42,"secureConnectionType":"TLS","userName":"string","password":"string","useAuth":true,"fromEmail":"string","authType":"BASIC","oauthProvider":"GOOGLE","clientId":"string","oauthScopes":"string","requiresReauth":true,"oauth":true,"basicAuth":true}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
{
"id": 42,
"host": "string",
"port": 42,
"secureConnectionType": "TLS",
"userName": "string",
"password": "string",
"useAuth": true,
"fromEmail": "string",
"authType": "BASIC",
"oauthProvider": "GOOGLE",
"clientId": "string",
"oauthScopes": "string",
"requiresReauth": true,
"oauth": true,
"basicAuth": true
}
Response examples (200)
{
"isSuccessful": true,
"errorType": "VALIDATION_ERROR",
"message": "string"
}