# Unable to Use Elasticsearch Object Export API

**URL:** https://discuss.elastic.co/t/unable-to-use-elasticsearch-object-export-api/336287
**Category:** Kibana
**Tags:** dashboard
**Created:** [June 17, 2023, 10:05pm UTC](https://discuss.elastic.co/t/unable-to-use-elasticsearch-object-export-api/336287 "2023-06-17T22:05:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vdashora](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vdashora](https://discuss.elastic.co/u/vdashora)
#### Post date: [June 17, 2023, 10:05pm UTC](https://discuss.elastic.co/t/unable-to-use-elasticsearch-object-export-api/336287/1 "2023-06-17T22:05:15Z")

</div>

Hi all,

I'm trying to export a dashboard we have in Kibana using the API command. I've written a Python script but when I run the command it gives me this error:

```auto
Export failed with status code: 404
{"statusCode":404,"error":"Not Found","message":"Not Found"}

```

I pass in the dashboard ID and Credentials as variables, and my Kibana url is running at 5601! Any ideas what could be causing this? Thank you in advance!

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [June 18, 2023, 1:05am UTC](https://discuss.elastic.co/t/unable-to-use-elasticsearch-object-export-api/336287/2 "2023-06-18T01:05:18Z")

</div>

Hi @vdashora

You need to show the entire url you are trying to access... 404 Means wrong URL or ID.

Also perhaps try as a `curl` first following the documentation [here](https://www.elastic.co/guide/en/kibana/current/api.html) and don't forget the correct [headers](https://www.elastic.co/guide/en/kibana/current/api.html#api-request-headers)

---

<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: [July 16, 2023, 1:06am UTC](https://discuss.elastic.co/t/unable-to-use-elasticsearch-object-export-api/336287/3 "2023-07-16T01:06:12Z")

</div>

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