The getfriendshiprequests command lists the pending friendship requests as a CSV list of avatar names by avatar UUIDs.

CommandRequired ParametersRequired Corrade PermissionsExample
getfriendshiprequestsgroup, passwordfriendship
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // termiante friendship
            // with Big Betty
            "command", "getfriendshiprequests",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "callback", wasURLEscape(URL)
        ]
    )
);