Skip to main content
POST
Trigger Email Sync

Request

LeadLex continuously synchronizes connected Gmail and Office 365 mailboxes in the background. This endpoint lets you enqueue an immediate sync when you need fresh data (for example, just before running an outreach report).

Headers

string
Optional UUID used to deduplicate retried sync requests within 24 hours.

Body Parameters

string
default:"incremental"
incremental (default) fetches only messages newer than the last successful sync. full rebuilds the entire mailbox index and may take several minutes.
string
Optional provider override: gmail or microsoft. When omitted, all connected providers are synced.

Response

object
Every response returns X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID headers. Jobs typically complete within 10 seconds for incremental mode; long-running full syncs are reported via the email.sync.completed webhook event.

Example Response

Errors