Thank you for reaching out.
Few things that could help here -
- Try accessing the shared drive items as described here.
- Do keep in mind, for OneDrive for Business and SharePoint, the Shares API always requires authentication and cannot be used to access anonymously shared content without a user context.
- Check the roles that are to be granted to the recipients of the sharing invitation. Do note that drives with a driveType of personal (OneDrive personal) cannot create or modify permissions on the root DriveItem.
- Look out for 'sendInvitation' parameter in the request body. If true, a sharing link is sent to the recipient. Otherwise, permission is granted directly without sending a notification.
If this doesn't help, please reach out including details of an API call (timestamp, client request-id, request body, and response).