# Find Completed Tasks in the Web Rest API

**URL:** <https://community.ofelia.com/t/find-completed-tasks-in-the-web-rest-api/3925>\
**Category:** Q&A\
**Created:** [1 November 2013 10:37 UTC](https://community.ofelia.com/t/find-completed-tasks-in-the-web-rest-api/3925 "2013-11-01T10:37:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [1 November 2013 10:37 UTC](https://community.ofelia.com/t/find-completed-tasks-in-the-web-rest-api/3925/1 "2013-11-01T10:37:29Z")

</div>

How can I find the completed tasks for a case via the Web Rest API? I can find a ready task here

[http://localhost:8080/bonita/API/bpm/task?f=caseId%3d3052](http://localhost:8080/bonita/API/bpm/task?f=caseId%3d3052)

and view the task here:

[http://localhost:8080/bonita/API/bpm/task/60182](http://localhost:8080/bonita/API/bpm/task/60182)

But once the task is completed I can no longer find it directly or find it in a search.&nbsp;This is what I expect, however I cant find any way of retrieving completed tasks for a a case.&nbsp;

I have tried using the archivedTask endpoint:

[http://localhost:8080/bonita/API/bpm/archivedTask/60182](http://localhost:8080/bonita/API/bpm/task/60182)

[http://localhost:8080/bonita/API/bpm/archivedTask?f=caseId%3d3052](http://localhost:8080/bonita/API/bpm/ArchivedTask?f=caseId%3d3052)

Am I using the correct endpoint (API/bpm/archivedTask) or are there some other parameters I need to send?

I am developing against version 6.0.4

Thanks for your help

&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [5 November 2013 11:01 UTC](https://community.ofelia.com/t/find-completed-tasks-in-the-web-rest-api/3925/2 "2013-11-05T11:01:28Z")

</div>

Hello, did you had a look at the Cookbooks:&nbsp;[http://documentation.bonitasoft.com/product-bos-sp/cookbook-api-examples](http://documentation.bonitasoft.com/product-bos-sp/cookbook-api-examples)&nbsp;????
