InboxSync a mailbox's inbox now

Sync a mailbox's inbox now

Runs one incremental IMAP pass immediately instead of waiting for the scheduler (default: every 2 minutes). Processes up to 50 messages inside a ~9 second budget; large backlogs drain across several calls (remaining > 0, or partial: true when the provider was slow). Progress is always saved, so repeating the call is safe.

curl -X POST "https://api.supasend.io/v1/mailboxes/507f1f77bcf86cd799439011/sync" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "mailbox_id": "example_string",
  "fetched": 42,
  "stored": 42,
  "skipped": 42,
  "replies": 42,
  "bounces": 42,
  "auto_replies": 42,
  "bulk": 42,
  "remaining": 42,
  "partial": true,
  "synced_at": "2024-12-25T10:00:00Z"
}
POST
/v1/mailboxes/{id}/sync
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key in the format sk_live_<64 hex characters>

API key in the format sk_live_<64 hex characters>
path
idstring
Required

MongoDB ObjectID

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key in the format sk_live_\<64 hex characters\>

Path Parameters

idstring
Required

MongoDB ObjectID

Example:
507f1f77bcf86cd799439011

Responses

mailbox_idstring
fetchedinteger
storedinteger
skippedinteger

Duplicates, own sent mail, unparseable

repliesinteger
bouncesinteger
auto_repliesinteger
bulkinteger
remaininginteger

New messages left for the next pass (50 per on-demand call, 200 per scheduler pass)

partialboolean

Present (true) when the provider was too slow to finish inside the request budget; progress so far is saved — call again

synced_atstring