Is it possible to get all of the lists that a company is a part of via the API? This is possible for contacts in the V1 API by using the optional showListMemberships parameter: https://legacydocs.hubspot.com/docs/methods/contacts/get_contact. I wasn't able to find a way to do this for Companies with any of the APIs, and for Contacts the V3 API didn't have that same functionality available that the V1 has (but I would rather be using the latest API). Does anyone know of a way to accomplish this?
You can go with this https://legacydocs.hubspot.com/docs/methods/lists/get_lists API. With this, you can get all the lists of a specific portal and from their responses, you can get to know that if any lists have the company in it as a condition or something. Alternatively, if you know the ID of the list in which company is used then you can go with https://api.hubapi.com/contacts/v1/lists/listID?hapikey=demo, and at the place of listID you have to send your list ID in which the company is used.
You can go with this https://legacydocs.hubspot.com/docs/methods/lists/get_lists API. With this, you can get all the lists of a specific portal and from their responses, you can get to know that if any lists have the company in it as a condition or something. Alternatively, if you know the ID of the list in which company is used then you can go with https://api.hubapi.com/contacts/v1/lists/listID?hapikey=demo, and at the place of listID you have to send your list ID in which the company is used.