# How to find task identifier given a jobId/process identifier

**URL:** <https://forum.alumio.com/t/how-to-find-task-identifier-given-a-jobid-process-identifier/957>\
**Category:** Tasks\
**Tags:** alumio-api\
**Created:** [January 31, 2024, 8:47am UTC](https://forum.alumio.com/t/how-to-find-task-identifier-given-a-jobid-process-identifier/957 "2024-01-31T08:47:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.vos](https://forum.alumio.com/letter_avatar_proxy/v4/letter/d/d26b3c/32.png) [@daniel.vos](https://forum.alumio.com/u/daniel.vos)\
**Post date:** [January 31, 2024, 8:47am UTC](https://forum.alumio.com/t/how-to-find-task-identifier-given-a-jobid-process-identifier/957/1 "2024-01-31T08:47:40Z")

</div>

Using the API endpoint /queue/process/list, I can observe whether a webhook or an incoming has been called. And through the API endpoint /tasks, I can obtain an overview of all created tasks. How can I, based on a process identifier or jobId, check which task has been created?

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [February 12, 2024, 4:09pm UTC](https://forum.alumio.com/t/how-to-find-task-identifier-given-a-jobid-process-identifier/957/2 "2024-02-12T16:09:35Z")

</div>

Hi @daniel.vos

At the moment, the only way to achieve your objective is to use the API endpoint `POST /logs/search`. The documentation is not completed yet, so below is the API request you can call to get the task identifier.

```auto
POST https://<ENV_IDENTIFIER>.alumio.com/api/v1/logs/search?index=filebeat-%2A

{
    "prototype": "queue-logs",
    "parameters": {
        "runId": "<PROCESS_ID>",
        "from": 0,
        "size": 100,
        "level": 200,
        "order": "asc",
        "filters": {
            "where": {
                "@fields.ctxt_tag": {
                    "eq": "task.created"
                }
            }
        }
    }
}

```

The task identifier(s) is in path `object.hits.hits[]._source.@fields.ctxt_task.identifier` in the response.
