跳转到内容

InboxService

此内容尚不支持你的语言。

Provides mobile inbox functionality — delta synchronization, read tracking, and message retrieval.

Method Description
Sync Synchronize the inbox with delta or full refresh
MarkRead Mark a message as read
GetMessage Get a specific message by delivery ID

Synchronize the user’s inbox. Returns entries modified since the provided cursor timestamp.

Authorization: Authenticated user

Field Type Description
cursor Timestamp Return entries modified after this timestamp. Omit for full sync.
limit int32 Maximum entries to return. 1–100, default 50.
full_refresh bool Force a full refresh instead of delta sync.
Field Type Description
entries InboxEntry[] Inbox entries (new or modified).
cursor Timestamp Updated cursor for the next sync.
has_more bool Whether more entries are available.
Field Type Description
delivery_id string Delivery ID (primary key).
message Message The rendered message content.
status DeliveryStatus Current delivery status.
received_at Timestamp When the entry was received.
read_at Timestamp When the entry was read.

TypeScript (Connect-Web)

// Initial sync
const initial = await inboxClient.sync({
limit: 50,
fullRefresh: true,
});
// Delta sync
const delta = await inboxClient.sync({
cursor: initial.cursor,
limit: 50,
});

Go (gRPC)

// Initial sync
initial, err := inboxClient.Sync(ctx, &pidgrv1.SyncRequest{
Limit: 50,
FullRefresh: true,
})
// Delta sync
delta, err := inboxClient.Sync(ctx, &pidgrv1.SyncRequest{
Cursor: initial.Cursor,
Limit: 50,
})

Mark a message as read. This is analytics-only — it does not affect workflow progression.

Authorization: Authenticated user

Field Type Description
delivery_id string Delivery ID to mark as read.

Empty response on success.

Get a specific message by delivery ID.

Authorization: Authenticated user (must be the recipient)

Field Type Description
delivery_id string Delivery ID.
Field Type Description
entry InboxEntry The inbox entry with message content.