Function to search for associated objects does not work

Hello guys, how are you? I am carrying out an API integration and associated a company with an event
(1 event (which is a customObject) can have several companies)
The association worked correctly and I can view it through Hubspot, but I am not able to search for this data in the API, when I click on the list of associations it only returns the ID’s of the associated data, I need you to bring me all the company and event data, how do I do it? that?