# Kibana - API to get status of report generation?

**URL:** <https://discuss.elastic.co/t/kibana-api-to-get-status-of-report-generation/278482>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [July 13, 2021, 1:37am UTC](https://discuss.elastic.co/t/kibana-api-to-get-status-of-report-generation/278482 "2021-07-13T01:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteryann](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@peteryann](https://discuss.elastic.co/u/peteryann)\
**Post date:** [July 13, 2021, 1:37am UTC](https://discuss.elastic.co/t/kibana-api-to-get-status-of-report-generation/278482/1 "2021-07-13T01:37:59Z")

</div>

How do I get the status of a report generation job after I've issued the POST request to generate said report? I have the job ID, but there doesn't seem to be any API that allows me to query for my job and check its status

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [July 13, 2021, 9:34pm UTC](https://discuss.elastic.co/t/kibana-api-to-get-status-of-report-generation/278482/2 "2021-07-13T21:34:26Z")

</div>

Hi @peteryann ,

You can read about automated reporting in [official documentation](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html).

Specifically in your case:

`To automatically generate reports from a script, you’ll make a request to the POST URL. The response from this request will be JSON, and will contain a path property with a URL to use to download the generated report. Use the GET method in the HTTP request to download the report.`

I think you can use ES query to get pending ones:

```auto
GET /.reporting*/_search
{
    "query": {
        "bool": {
            "must_not": {
                "exists": {
                    "field": "completed_at"
                }
            }
        }
    }
}

```

\_search is available in [API clients](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html)

Regards, Dima

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 10, 2021, 9:34pm UTC](https://discuss.elastic.co/t/kibana-api-to-get-status-of-report-generation/278482/3 "2021-08-10T21:34:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
