Skip to content

Read a sync run and current inbox counts

PubNio API inbox.sync.get: read a sync run and current inbox counts. Request fields, examples in five clients, errors, and idempotency.

Read a sync run and current inbox counts with GET /api/v1/inbox/sync/{syncRunId}. Requires an API key with the read scope or a signed-in workspace member.

Request

Parameter In Type Required
syncRunId path UUID Yes
workspaceId query UUID Yes

Response

  • HTTP 200: InboxSyncStatus with syncRun, counts.

The OpenAPI document has each field’s type.

Examples

const run = await workspace.inbox.sync(syncRunId);
run = workspace.inbox.get_sync(sync_run_id)
curl "https://pubnio.com/api/v1/inbox/sync/$SYNC_RUN_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio inbox sync status "$SYNC_RUN_ID"
async () => {
  const syncRunId = "<syncRunId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/inbox/sync/${syncRunId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};

Errors

It declares no problem of its own.

It declares the problems every Inbox operation and most operations declare.

Idempotency

None needed: a read is safe to retry.

Limits

Type to search…

↑↓ navigate↵ selectEsc close