How do you test APIs without a UI?

Technical