Skip to content

Test Mailbox Connection

POST
/mailboxes/{mailbox_id}/test-connection

Verify a mailbox’s IMAP/SMTP credentials and refresh its connection status.

Send an empty body to test what is stored. Supply credentials to test candidate values without saving them — useful for validating before a PATCH.

Authorizations

Parameters

Path Parameters

mailbox_id
required

Mailbox ID (mailboxes.id)

integer

Mailbox ID (mailboxes.id)

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body

Any of:

Optionally override credentials for the test without saving them.

object
imap_address
Any of:
string
imap_password
Any of:
string
imap_port
Any of:
integer
imap_username
Any of:
string
smtp_address
Any of:
string
smtp_password
Any of:
string
smtp_port
Any of:
integer
smtp_username
Any of:
string

Responses

200

Successful Response

object
data
required
object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string