OrgCommunicationsSync

Pull recent mail now

Fetches recent messages for this org's connected mailboxes and records anything new. The inbox calls it on open, because neither path that normally delivers a reply — the provider webhook or the periodic sync — runs on a developer machine, and a fresh deployment would otherwise show an empty inbox until the first scheduled tick. Idempotent: everything dedupes on the provider's message id.

POST
/org/communications/sync

Fetches recent messages for this org's connected mailboxes and records anything new. The inbox calls it on open, because neither path that normally delivers a reply — the provider webhook or the periodic sync — runs on a developer machine, and a fresh deployment would otherwise show an empty inbox until the first scheduled tick. Idempotent: everything dedupes on the provider's message id.

AuthorizationBearer <token>

API key (sk_live_... prefix). Generate keys in the UI under Settings > API Keys, then send it as Authorization: Bearer sk_live_...

In: header

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/org/communications/sync"
{
  "data": {
    "accounts": -9007199254740991,
    "fetched": -9007199254740991,
    "stored": -9007199254740991,
    "errors": [
      "string"
    ]
  }
}
{
  "error": "string",
  "message": "string",
  "statusCode": -9007199254740991
}
{
  "error": "module_required",
  "module": "string",
  "message": "string",
  "contact": "string"
}