Classic APIs
ClassicFriendsApi
authenticatedUserFriendRequests

authenticatedUserFriendRequests

Gets friends requests sent to the authenticated user.

Parameters

NameTypeDescription
limit?10 | 18 | 25 | 50 | 100The number of results to be returned per request.
sortOrder?SortOrderThe order that the results are sorted in.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: requests } = await ClassicFriendsApi.authenticatedUserFriendRequests({ limit: 10 }); 

Example Data

[
  {
    friendRequest: {
      sentAt: 2024-03-24T02:25:33.095Z,
      senderId: 5635371081,
      sourceUniverseId: 2549415383,
      originSourceType: "InGame",
      contactName: null,
    },
    mutualFriendsList: [],
    hasVerifiedBadge: false,
    description: "",
    created: 2024-03-04T15:20:32.033Z,
    isBanned: false,
    externalAppDisplayName: null,
    id: 5635371081,
    name: "loremIpsum",
    displayName: "loremIpsum",
  },
] 

Endpoint

GET /v1/my/friends/requests