Thank you for your answer. Yes, it will be nice to have a separate API but for now, the solution suggested by you works for us.