# Kibana API call unathorized

**URL:** <https://discuss.elastic.co/t/kibana-api-call-unathorized/355915>\
**Category:** Kibana\
**Created:** [March 21, 2024, 3:04pm UTC](https://discuss.elastic.co/t/kibana-api-call-unathorized/355915 "2024-03-21T15:04:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.d.intodata](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@h.d.intodata](https://discuss.elastic.co/u/h.d.intodata)\
**Post date:** [March 21, 2024, 3:04pm UTC](https://discuss.elastic.co/t/kibana-api-call-unathorized/355915/1 "2024-03-21T15:04:24Z")

</div>

Hi team,

I have a series of dashboards that i need to copy from one kibana server to another. I tried using

```auto
POST http://<ip_address>:<kibana_port>/api/saved_objects/_export

```

However, all i get is

```auto
{
    "statusCode": 401,
    "error": "Unauthorized",
    "message": "Unauthorized"
}

```

Would I need to make an api to solve this issue? If so what access rights do i need to provide?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [March 21, 2024, 3:05pm UTC](https://discuss.elastic.co/t/kibana-api-call-unathorized/355915/2 "2024-03-21T15:05:54Z")

</div>

Hi @h.d.intodata,

Have you tried adding a token or API key to the call similar to the [examples here](https://www.elastic.co/guide/en/elasticsearch/reference/current/http-clients.html#http-clients-secondary-authorization).

---

<div class="post-metadata">

**Author:** ![h.d.intodata](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@h.d.intodata](https://discuss.elastic.co/u/h.d.intodata)\
**Post date:** [March 26, 2024, 10:47am UTC](https://discuss.elastic.co/t/kibana-api-call-unathorized/355915/3 "2024-03-26T10:47:35Z")

</div>

Thank you for your help @carly.richmond that solved my problem.

---

<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:** [April 23, 2024, 10:47am UTC](https://discuss.elastic.co/t/kibana-api-call-unathorized/355915/4 "2024-04-23T10:47:42Z")

</div>

Closed on April 23, 2024, 10:47am UTC

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