UiPath interview question

Tell me about APIs vs RPA and if they can work together?