# Trying to integrate with InsightVM API v3 - What is my host?

**URL:** <https://discuss.rapid7.com/t/trying-to-integrate-with-insightvm-api-v3-what-is-my-host/43666>\
**Category:** API\
**Created:** [October 15, 2024, 1:24pm UTC](https://discuss.rapid7.com/t/trying-to-integrate-with-insightvm-api-v3-what-is-my-host/43666 "2024-10-15T13:24:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jspeet](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jspeet](https://discuss.rapid7.com/u/jspeet)\
**Post date:** [October 15, 2024, 1:24pm UTC](https://discuss.rapid7.com/t/trying-to-integrate-with-insightvm-api-v3-what-is-my-host/43666/1 "2024-10-15T13:24:49Z")

</div>

Hi all, this is the first time I’ve worked with R7 and am having a tough time with the API. I need access to our company’s policy data, which from what I’ve seen means I need to use api v3.

The docs say the uri needs to be [https://host](https://host):port/api/3/ . When I sign into InsightVM Console (not Platform), the url is something like [https://afeg-g5ah-acv3:1234](https://afeg-g5ah-acv3:1234) . Trying to use this as the uri throw an error that the host couldn’t be found, no matter where I’ve tried to run it.

I think the issue is that url is to an on-prem instance. Is there something else that I need to do for this to work (firewall etc) or am I just using the wrong uri?  
I could also just be misunderstanding the setup. I am able to get a connection with the v4 API, which uses the [https://us.api.insight.rapid7.com/vm/v4](https://us.api.insight.rapid7.com/vm/v4) format, but my understanding is that the host should be different

Thanks!

---

<div class="post-metadata">

**Author:** ![dave\_callan](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/d/8edcca/32.png) [@dave\_callan](https://discuss.rapid7.com/u/dave_callan)\
**Post date:** [October 15, 2024, 10:11pm UTC](https://discuss.rapid7.com/t/trying-to-integrate-with-insightvm-api-v3-what-is-my-host/43666/2 "2024-10-15T22:11:07Z")

</div>

Sounds like the host you’re trying to connect from either can’t resolve the hostname of the console, or it can’t connect (could be firewall etc.). Try using the FQDN of the console as the host. You should also verify the client host can resolve the hostname (e.g. nslookup afeg-g5ah-acv3) and that it can connect (e.g. telnet afeg-g5ah-acv3 1234). If DNS resolution is the problem you could also try using the IP instead of host.
