OpenText interview question

How exactly does API interaction happens? Details about object and data to be shared in API contract