# Export via API of Exception List returns {}

**URL:** <https://discuss.elastic.co/t/export-via-api-of-exception-list-returns/371595>\
**Category:** Kibana\
**Created:** [December 6, 2024, 11:21am UTC](https://discuss.elastic.co/t/export-via-api-of-exception-list-returns/371595 "2024-12-06T11:21:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amoser](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@amoser](https://discuss.elastic.co/u/amoser)\
**Post date:** [December 6, 2024, 11:21am UTC](https://discuss.elastic.co/t/export-via-api-of-exception-list-returns/371595/1 "2024-12-06T11:21:28Z")

</div>

Hello there,

I'm trying to export an exception list via the Kibana API according to [Export exception list](https://www.elastic.co/guide/en/security/8.16/exceptions-api-export-exception-list.html).  
I'm testing with Console at Dev Tools:  
`POST kbn:/api/exception_lists/_export?id=81039bc7-8b28-4435-8976-77a41d127c8d&list_id=eccde6e4-97ee-47ed-b8bb-aae97cc2229e`  
as well as with Python Requests.

 ![Screenshot 2024-12-06 122908](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3f7a9c390ff2011252e090fb8f0b1ec53b404d67.png)

Yes, I checked if the id and list\_id are correct, took those from  
`GET kbn:/api/exception_lists/_find`.

Using  
`GET kbn:/api/exception_lists/items/_find?list_id=eccde6e4-97ee-47ed-b8bb-aae97cc2229e`  
I'm getting one entry back.

When exporting it via UI it is working, but I need to use the API.

Am I doing something wrong or could someone verify on their instance?

Best Regards  
Aaron
