Sync email messages from provider
Triggers an asynchronous historical sync of the specified connected mailbox (Gmail or Outlook). Returns immediately; observe progress via GET /api/email/messages/sync/status.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/email/messages/sync" \ -H "Content-Type: application/json" \ -d '{ "accountId": "665f1a0c0e0a4b001a2c9f50", "maxResults": 500, "lookbackDays": 30 }'{ "status": "running"}