Please follow below pictures to create a flow.
1.Set trigger and get files.
2.Create a compose.
3.Create a condition and create a new document library.
Uri:_api/web/lists
Headers:
accept application/json;odata=verbose
content-type application/json;odata=verbose
Body:
{
'__metadata':{ 'type':'SP.List' },
'AllowContentTypes': true,
'BaseTemplate':101,
'ContentTypesEnabled':true,
'Description':"",
'Title': 'newdoc'
}
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.