# How to use Kibana export API?

**URL:** <https://discuss.elastic.co/t/how-to-use-kibana-export-api/369717>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [October 29, 2024, 11:38am UTC](https://discuss.elastic.co/t/how-to-use-kibana-export-api/369717 "2024-10-29T11:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakb](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nakb](https://discuss.elastic.co/u/nakb)\
**Post date:** [October 29, 2024, 11:38am UTC](https://discuss.elastic.co/t/how-to-use-kibana-export-api/369717/1 "2024-10-29T11:38:53Z")

</div>

I am using Kibana export API to get the rule in dev tools, but it's throwing error.

```auto
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Trying to export object(s) with non-exportable types: rule:5f598262-6916-46fc-ae83-4e9acf0f5554"
}

```

I have tried below API

```auto
POST kbn:api/saved_objects/_export
{
  "objects": [
    {
      "id": "5f598262-6916-46fc-ae83-4e9acf0f5554",
      "type": "rule"
    }
  ],
  "excludeExportDetails": true,
  "includeReferencesDeep": false
}

```

**Kibana version - 8.14.3**
