Thanks, I think it would be useful to have this API. I've added an issue about it here:

1 Like