New credentials or settings for the same mailbox, in place (same id), with the same body as a connect. provider may differ from the mailbox's type (a password mailbox moved to your Google or Microsoft OAuth app, or back): the old login is replaced and the account's type follows. The next OK is sent as RECONNECTED; a refused reconnect changes nothing.
Your API key from the console (gw_live_…).
In: header
Path Parameters
A mailbox (em_…).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The three kinds of connection in one body, plus Swarmhit's: oauth_app_id, email, name, expires_at, imap_tls / smtp_tls.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/email/api/v1/accounts/em_gX2kP9qL4mT7vB1nR8sW3yZ" \ -H "Content-Type: application/json" \ -d '{ "provider": "MAIL" }'{ "object": "AccountReconnected", "account_id": "string"}