# API to get all tasks

**URL:** <https://community.hubspot.com/t/api-to-get-all-tasks/14624>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [June 3, 2019, 10:09am UTC](https://community.hubspot.com/t/api-to-get-all-tasks/14624 "2019-06-03T10:09:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![urban-a](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/urban-a/32/30597_2.png) [@urban-a](https://community.hubspot.com/u/urban-a)\
**Post date:** [June 3, 2019, 10:09am UTC](https://community.hubspot.com/t/api-to-get-all-tasks/14624/1 "2019-06-03T10:09:35Z")

</div>

Hi is there an API or workaround to get all tasks, for a user or for a deal etc.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 3, 2019, 9:56pm UTC](https://community.hubspot.com/t/api-to-get-all-tasks/14624/2 "2019-06-03T21:56:32Z")

</div>

Hi, @urban-a.

Since tasks are a `type` of [engagement](https://developers.hubspot.com/docs/methods/engagements/engagements-overview), you can use the [_Get all engagments_](https://developers.hubspot.com/docs/methods/engagements/get-all-engagements) endpoint to retrieve them all (up to 250 in a single call). You will have to make multiple requests using the `offset` parameter until `"hasMore": false`.

Once your app receives the engagements, you can filter on the `"type": "TASK"` field or the `dealIds` or `ownerIds` values in the `associations` object.
