Queue a bounded inbox sync with POST /api/v1/inbox/sync. Requires an API key with the read scope or a signed-in workspace member.
Request
Moves an inbox cursor due now and returns 202 with a shared sync run ID. No provider call happens during the request.
| Body field | Type | Required |
|---|---|---|
workspaceId |
UUID | Yes |
accountId |
UUID | No |
Response
- HTTP 202:
InboxSyncAcceptedwithsyncRunId,status.status:queued,running,succeeded,partial,failed,cancelled
The OpenAPI document has each field’s type.
Examples
const accepted = await workspace.inbox.startSync(accountId);accepted = workspace.inbox.start_sync(account_id=account_id)curl -X POST "https://pubnio.com/api/v1/inbox/sync" \
-H "Authorization: Bearer $PUBNIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workspaceId":"'"$WORKSPACE_ID"'","accountId":"'"$ACCOUNT_ID"'"}'pnio inbox sync start --workspace-id "$WORKSPACE_ID" --account-id "$ACCOUNT_ID"async () => {
const accountId = "<accountId>";
const response = await codemode.request({
method: "POST",
path: "/api/v1/inbox/sync",
body: { workspaceId: codemode.workspaceId, accountId: accountId },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Inbox operation and most operations declare.
Idempotency
No key, so a retried POST is not deduplicated. Read the current state before you retry.
Limits
- Field lengths and ranges are in the OpenAPI document.