workspaces_mailboxes_test_connection_create
Opens a real connection and authenticates. With the default protocol: "all", every protocol the mailbox has enabled is tested — both for a dual-protocol mailbox, just the one that applies otherwise. Returns results with a per-protocol {protocol, success, message}; if any protocol fails the call is a 400 whose error summarises the failures.
Method: POST /api/v1/workspaces/{workspace_sqid}/mailboxes/test-connection/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sqid": "<sqid>"
},
"name": "workspaces_mailboxes_test_connection_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | Mailbox to test. | |
| protocol | No | Which protocol to test. `all` (the default) tests every protocol the mailbox has enabled — both for a dual-protocol mailbox, just the one that applies otherwise. Naming a protocol the mailbox does not have enabled is a 400. * `smtp` - smtp * `imap` - imap * `all` - all | all |