snapcap
ApiInterfaces

SentRequest

Interface: SentRequest

Defined in: api/friends/types.ts:214

An outbound friend request — the logged-in user has added this account and is waiting for them to accept.

Remarks

toUsername / toDisplayName are best-effort: populated only when the recipient is already in the publicUsers cache (mutuals lookups, prior search, etc.). Callers can always match on toUserId.

Properties

PropertyTypeDescriptionDefined in
toDisplayName?stringRecipient's display name — only present when the public-users cache holds them.api/friends/types.ts:220
toUserIdstringHyphenated UUID of the recipient.api/friends/types.ts:216
toUsername?stringRecipient's Snap username — only present when the public-users cache holds them.api/friends/types.ts:218

On this page