Hi @Martin Tomek
To share the item with external users, you will need to learn about external sharing features of Microsoft. Please refer to following document
https://learn.microsoft.com/en-us/sharepoint/external-sharing-overview
After share the item with external users, you can access the item by the graph api
GET /shares/{shareIdOrEncodedSharingUrl}
For more details you can refer to the following document
https://learn.microsoft.com/en-us/graph/api/shares-get?view=graph-rest-1.0&tabs=http
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.