The API object describes an API that's being exposed by Kong. In order to do that Kong needs to know how to retrieve the API when a consumer is calling it. This can be achieved either by specifying a custom DNS address or a specific URL path.
Then, Kong needs to know what is the final target URL of the API where the requests will be proxied.
Checkout Kong documentation for the meaning of these parameters.