# Automatic Report in Postman

**URL:** <https://discuss.elastic.co/t/automatic-report-in-postman/202978>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [October 10, 2019, 8:34am UTC](https://discuss.elastic.co/t/automatic-report-in-postman/202978 "2019-10-10T08:34:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolo-dev](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jolo-dev](https://discuss.elastic.co/u/jolo-dev)\
**Post date:** [October 10, 2019, 8:34am UTC](https://discuss.elastic.co/t/automatic-report-in-postman/202978/1 "2019-10-10T08:34:24Z")

</div>

Hello,

how can I use this  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a9617c145c87ec503c4bceaf45dcc25955c51138.png)

in Postman for example? I have problems to understand what authentication informations are needed.

Cheers!

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 10, 2019, 6:56pm UTC](https://discuss.elastic.co/t/automatic-report-in-postman/202978/2 "2019-10-10T18:56:41Z")

</div>

You can make a POST request to the URL it provides. Additionally, you also want to provide the `kbn-xsrf` header.

Here is an example with cURL:

Windows Terminal

`curl -H 'kbn-xsrf: true' -u elastic -X POST ${URL}`

This will present you with the password of your user, in the example provided that username was `elastic`. If you prefer not to provide your password, or are using it for automation, you can provide the Authorization header.

`curl -H 'kbn-xsrf: true' -H 'Authorization: Basic ${TOKEN}' ${URL}`

Here, the token is a base64 representation of your username and password separated by a colon. Most all languages support base64, but for demonstration purposes we can use [https://www.base64encode.org/](https://www.base64encode.org/). Here we will provide `elastic:changeme` as an example, which will result in `ZWxhc3RpYzpjaGFuZ2VtZQ==`, and we can update our example to:

`curl -H 'kbn-xsrf: true' -H 'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==' ${URL}`

---

<div class="post-metadata">

**Author:** ![jolo-dev](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jolo-dev](https://discuss.elastic.co/u/jolo-dev)\
**Post date:** [October 12, 2019, 7:52am UTC](https://discuss.elastic.co/t/automatic-report-in-postman/202978/3 "2019-10-12T07:52:43Z")

</div>

@tylersmalley Thank you for your reply.  
Indeed it works!

Somehow it needs to be mentioned here: [https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html)  
right?

However, the result is not really satisfying..  
In the response, I only get meta data of the report but not the actual result.

---

<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:** [November 9, 2019, 7:52am UTC](https://discuss.elastic.co/t/automatic-report-in-postman/202978/4 "2019-11-09T07:52:49Z")

</div>

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