The fastest way to make your first AI-built app confusing is to say:

Add an API.

That sentence sounds like a feature request. It is actually a small pile of unanswered questions wearing a trench coat.

Which API?

What information goes into it?