# API access

**URL:** <https://community.hubspot.com/t/api-access/22496>\
**Category:** APIs & Integrations\
**Tags:** oauth, object\
**Created:** [July 6, 2020, 12:23pm UTC](https://community.hubspot.com/t/api-access/22496 "2020-07-06T12:23:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddiecs](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eddiecs/32/86357_2.png) [@eddiecs](https://community.hubspot.com/u/eddiecs)\
**Post date:** [July 6, 2020, 12:23pm UTC](https://community.hubspot.com/t/api-access/22496/1 "2020-07-06T12:23:18Z")

</div>

396/5000

Good Morning  
I am integrating the HubSpot API with my Erp system. I just need to access the API and download the leads and then return to the API or some information regarding the status of the lead.  
I couldn’t find the documentation that allows the connection.  
I’m using PostMan to do the tests.  
If you can send me a link or tutorial on how to make this connection I would appreciate it.

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [July 7, 2020, 1:55am UTC](https://community.hubspot.com/t/api-access/22496/2 "2020-07-07T01:55:44Z")

</div>

Hello @eddiecs

If we talk about leads in HubSpot they are the contacts with lifecycle stage as LEAD. You can download all you such contacts using endpoint: [Get all contacts](https://legacydocs.hubspot.com/docs/methods/contacts/get_contacts) with pagination. To run this endpoint, you will need to fetch API Key from your HS portal as [Access your HubSpot API key](https://knowledge.hubspot.com/integrations/how-do-i-get-my-hubspot-api-key)

In the response, you can easily get status of every lead saved in HubSpot.

Thanks
