/bff/emailer-incoming/sync-now
Runs the same worker chain as the /cron/sync-resend-received-emails scheduler, but scoped to the caller's organisation and bypassing the adaptive next-sync-date filter. First pulls newly received mails from Resend into brj__emailer_received_email, then walks the classification queue so any freshly ingested mails get a spam verdict and (when actionable) an auto-created pm__issue in the same tick. Requires resend_api_key to be set for the organisation.
EmailerpostBffEmailer-incomingSync-now
No parameters
This endpoint takes no path, query, header or body parameters.
Request
POST /bff/emailer-incoming/sync-now
curl -X POST "https://api.bizkithub.com/bff/emailer-incoming/sync-now" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"Response
JSON payload
{
"success": true,
"sync": {
"organisationsScanned": 0,
"apiCallsMade": 0,
"newMessages": 0,
"skippedAlreadyStored": 0,
"failedMessages": 0
},
"classification": {
"processed": 0,
"spam": 0,
"ticketsCreated": 0,
"workflowsRun": 0,
"workflowsDeferred": 0,
"ignored": 0,
"failed": 0
}
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.