# queue tasks

**URL:** <https://community.hubspot.com/t/queue-tasks/113303>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [July 30, 2024, 5:20pm UTC](https://community.hubspot.com/t/queue-tasks/113303 "2024-07-30T17:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KMirama](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@KMirama](https://community.hubspot.com/u/KMirama)\
**Post date:** [July 30, 2024, 5:20pm UTC](https://community.hubspot.com/t/queue-tasks/113303/1 "2024-07-30T17:20:34Z")

</div>

Hello, how are you? I have another question: Is it possible to query the queue of tasks associated with a business through the HubSpot API?”

---

<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 31, 2024, 3:49pm UTC](https://community.hubspot.com/t/queue-tasks/113303/2 "2024-07-31T15:49:37Z")

</div>

Hi, @KMirama 👋 You can do this for sure. The method will depend on your subscription. Either with [GraphQL](https://developers.hubspot.com/docs/cms/data/query-hubspot-data-using-graphql) (Sales Hub or Service Hub Enterprise subscription) or by using our endpoints (all accounts), likely will require multiple calls.

If you are using our endpoints, you can use the Companies API to return associations. Then take those IDs and query the matching Engagement endpoint (Tasks in this case) to get the details for the Tasks.

Example of the first request:

- I have a Company called McChicken

- I created three Tasks and associated them to McChicken

- Request

A second call to the Tasks endpoint is needed to get the details for the tasks. This is because the associated object properties are not returned in the initial call. And neither the Search API nor the batch endpoints will return associations in the way you need them to.

Have fun building! — Jaycee
