# API giving false response

**URL:** <https://community.hubspot.com/t/api-giving-false-response/98413>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [January 23, 2024, 10:27am UTC](https://community.hubspot.com/t/api-giving-false-response/98413 "2024-01-23T10:27:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devphoenix](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/devphoenix/32/55778_2.png) [@devphoenix](https://community.hubspot.com/u/devphoenix)\
**Post date:** [January 23, 2024, 10:27am UTC](https://community.hubspot.com/t/api-giving-false-response/98413/1 "2024-01-23T10:27:00Z")

</div>

HI Team,

one of your GET contact API is giving wrong response.

Use case:

- Create a list 20, assign one contact([abc@gmail.com](mailto:abc@gmail.com)) to it.

- Deleted the list

- Hit the fetch API, it still gives the response with that contact one contact([abc@gmail.com](mailto:abc@gmail.com)).

Recording one contact([abc@gmail.com](mailto:abc@gmail.com)) [Private claap](https://app.claap.io/brevo-1/api-response-hub-spot-c-3YfMIiN6mG-cEpUYgT-mKcc)

Thanks

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [January 24, 2024, 12:57am UTC](https://community.hubspot.com/t/api-giving-false-response/98413/2 "2024-01-24T00:57:01Z")

</div>

Hi @devphoenix 👋

I’ve been able to replicate the issue you’ve described. What seems to be happening is:

- You “delete” a List from HubSpot (either via web UI or API)
  - _Note that “deleting” a HubSpot List actually just **archives** it for 90 days (during this period it’s restorable). After 90 days have passed, it is deleted permentantly._

- The [V1 Get Contacts in a List](https://legacydocs.hubspot.com/docs/methods/lists/get_list_contacts) endpoint returns Contacts that belong to an **archived** Static List\*.\* This API response does not include any information about whether or not the given list is active or archived. This also seems to be the case with this endpoint’s [V3 equivalent](https://developers.hubspot.com/docs/api/crm/lists).
  - _Side note - I couldn’t replicate the issue for Dynamic Lists. They didn’t seem to be returned by the API if they were archived._

While not a great solution, I’d suggest you first try using [V1 Get List by ID](https://legacydocs.hubspot.com/docs/methods/lists/get_list). If you receive a 404, you can assume the List is either archived or deleted.

I hope this proves useful. Please let me know if you have any follow-up questions.
