The API could provide a way to do this from a client directly by asking the user for their password (notice how currently Dianara doesn't need your password), but AFAIK it's not currently possible.
Stephen Michael Kellat likes this.