List documents of a specific user who has access to with specific role

is there a direct api to get me all the documents of a specific user as editor,
if not, should i just loop over each workspace and each document in workspace and check if that email exists as editor? is there a more efficient way?