SMS DataTech interview question

What are APIs? explain it's types..