API Docs / Operations / Email - Configs / Reconnect OAuth email configuration

Reconnect OAuth email configuration

POST /tenants/{tenant}/email-configs/{code}/reconnect

Generates a fresh OAuth authorisation URL for reconnecting an expired or incorrectly-connected email configuration. Only works for OAuth providers (Microsoft365, Google) — returns 400 for SMTP. Sets the configuration status to PendingOAuthSetup. After the user completes the OAuth flow, the configuration status returns to Active automatically. User must be the owner or the config must be shared.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string

Request Body*

{
  "returnUrl": "string"
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
404 Not Found