# V3 API : Issue with scopes(403) even after configuration

**URL:** <https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 5, 2024, 11:19am UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741 "2024-07-05T11:19:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RKOSURI](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@RKOSURI](https://community.hubspot.com/u/RKOSURI)\
**Post date:** [July 5, 2024, 11:19am UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741/1 "2024-07-05T11:19:58Z")

</div>

Dear Team,

I hope you are doing well. I am working on a project where i need to get all leads exists in contactlist. Here is the V3 endpoint used.

[https://api.hubapi.com/crm/v3/objects/leads](https://api.hubapi.com/crm/v3/objects/leads)

I have a contactlistId and expecting all leads exists in that contactlist to appear on the postman response. As part of this requirement, first i have added the lead scopes (read& write) to the REQUIRED\_SCOPE in hubspot app(Oauth) as below. From config point of time, everything looks fine. But when i tried to fetch the leads from postman, I am getting below 403 error even after configuration. Could you please help me on how to resolve this issue?

 ![RKOSURI_0-1720177840420.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/11e7005187593b4aa33d1f516b69d8d9af11145f.png)

 ![RKOSURI_1-1720178097440.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/8/c894891fae3ca7ed869fe41fbc60433320544f4d.png)

---

<div class="post-metadata">

**Author:** ![AddaxLab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/addaxlab/32/26380_2.png) [@AddaxLab](https://community.hubspot.com/u/AddaxLab)\
**Post date:** [July 5, 2024, 3:08pm UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741/2 "2024-07-05T15:08:20Z")

</div>

Hey @RKOSURI

If the app was previously installed with different scopes, changing the scope after installation will not modify the scope of the existing token. Our developers team suggests trying to reinstall the app and see if that resolves the issue.

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/e/2ec7c0e0d863bd5e99557f08039759db061b915d.png)

---

<div class="post-metadata">

**Author:** ![RKOSURI](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@RKOSURI](https://community.hubspot.com/u/RKOSURI)\
**Post date:** [July 5, 2024, 6:20pm UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741/3 "2024-07-05T18:20:28Z")

</div>

@AddaxLab Thanks for your reply. I will forward this to my teammate. Currently hubspot app has lot of configurations like webhook configs. Bit concerned of its backup if it needs a reinstall.

---

<div class="post-metadata">

**Author:** ![AddaxLab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/addaxlab/32/26380_2.png) [@AddaxLab](https://community.hubspot.com/u/AddaxLab)\
**Post date:** [July 8, 2024, 5:19pm UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741/4 "2024-07-08T17:19:51Z")

</div>

Hey , @RKOSURI

Here is no one API endpoint to retrieve all contacts from contact list, but you can do it in 2 steps

1. Retrieve all members from a list with a GET request to [https://api.hubapi.com/crm/v3/lists/{listId}/memberships (replace {listId} with your actual id). Here, you retrieve a list of all member’s (contacts in our case) records ids. Like that:](https://api.hubapi.com/crm/v3/lists/%7BlistId%7D/memberships)

{ “results”: [{ “recordId”: “19625561285”, “membershipTimestamp”: “2024-07-08T13:22:18.815Z” }], “total”: 1 }

2. Get contact IDs from the response and map them to body payload for the next POST request to [https://api.hubapi.com/crm/v3/objects/contacts/batch/read](https://api.hubapi.com/crm/v3/objects/contacts/batch/read)

const body = { propertiesWithHistory: [“string”], inputs: [{ “id”: “19625561285” }, // … ADD MORE IDS HERE FROM THE RESPONSE OF THE PREVIOUS REQUEST], properties: [“firstName”, “email”, “lastName”] // ADD PROPERTIES HERE };

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/c/1c2cfb9c314cdf9ac7e53db19d99ccbf39080b2c.png)

---

<div class="post-metadata">

**Author:** ![AddaxLab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/addaxlab/32/26380_2.png) [@AddaxLab](https://community.hubspot.com/u/AddaxLab)\
**Post date:** [July 9, 2024, 1:37pm UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741/5 "2024-07-09T13:37:07Z")

</div>

Hey @RKOSURI

Here is no one API endpoint to retrieve all contacts from contact list, but you can do it in 2 steps

1. Retrieve all members from a list with a GET request to [https://api.hubapi.com/crm/v3/lists/{listId}/memberships (replace {listId} with your actual id). Here, you retrieve a list of all member’s (contacts in our case) records ids. Like that:](https://api.hubapi.com/crm/v3/lists/%7BlistId%7D/memberships)

{ “results”:[{ “recordId”: “19625561285”, “membershipTimestamp”: “2024-07-08T13:22:18.815Z” }],  
“total”: 1 }

2. Get contact IDs from the response and map them to body payload for the next POST request to [https://api.hubapi.com/crm/v3/objects/contacts/batch/read](https://api.hubapi.com/crm/v3/objects/contacts/batch/read)

const body = {propertiesWithHistory: [“string”], inputs: [  
{ “id”: “19625561285” }, // … ADD MORE IDS HERE FROM THE RESPONSE OF THE PREVIOUS REQUEST ], properties: [“firstName”, “email”, “lastName”] // ADD PROPERTIES HERE };

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/2/72dd7e5e1756046dcd979496ef868ac9c04fa59b.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [July 10, 2024, 8:46pm UTC](https://community.hubspot.com/t/v3-api-issue-with-scopes-403-even-after-configuration/110741/6 "2024-07-10T20:46:45Z")

</div>

Hey, @AddaxLab 👋 It looks like one of later replies got hung up in the spam filter. I moved it back out. I appreciate your help in this thread 🙌 — Jaycee
