# Can I Test API locally?

**URL:** <https://community.hubspot.com/t/can-i-test-api-locally/12014>\
**Category:** APIs & Integrations\
**Created:** [April 12, 2018, 10:33am UTC](https://community.hubspot.com/t/can-i-test-api-locally/12014 "2018-04-12T10:33:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 12, 2018, 10:33am UTC](https://community.hubspot.com/t/can-i-test-api-locally/12014/1 "2018-04-12T10:33:05Z")

</div>

Can I make API Test with authentication on my local computer?  
ie. redirect\_uri = ‘localhost/ContactIntegrateApi/’

i’m getting this ERror : Secure Connection Failed  
with this url : [https://localhost/hubspotintegrate/index.php/HubSpotContacts/test\_one/?error=invalid\_request](https://localhost/hubspotintegrate/index.php/HubSpotContacts/test_one/?error=invalid_request)

Thank you in advance

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 13, 2018, 2:48am UTC](https://community.hubspot.com/t/can-i-test-api-locally/12014/2 "2018-04-13T02:48:01Z")

</div>

Test can be done locally, sorry for the topic.

---

<div class="post-metadata">

**Author:** ![tlreuther](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tlreuther/32/57633_2.png) [@tlreuther](https://community.hubspot.com/u/tlreuther)\
**Post date:** [April 16, 2021, 2:00pm UTC](https://community.hubspot.com/t/can-i-test-api-locally/12014/3 "2021-04-16T14:00:34Z")

</div>

How did you figure this out?
