Start IMAP polling
Persists IMAP/SMTP configuration on the surface and starts the polling Durable Object.
Authentication
AuthorizationBearer
API key or Clerk session token
Path parameters
surfaceId
Request
This endpoint expects an object.
fromAddress
imapHost
imapPassword
imapPort
imapUsername
smtpHost
smtpPassword
smtpPort
smtpUsername
fromName
imapSecure
mailbox
pollIntervalMinutes
smtpSecure
Response
Polling started
success
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error