# Addon: additional API endpoints

**URL:** <https://discourse.getcockpit.com/t/addon-additional-api-endpoints/2640>\
**Category:** Cockpit v2\
**Created:** [December 20, 2022, 5:37pm UTC](https://discourse.getcockpit.com/t/addon-additional-api-endpoints/2640 "2022-12-20T17:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![witsec](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/witsec/32/818_2.png) [@witsec](https://discourse.getcockpit.com/u/witsec)\
**Post date:** [December 20, 2022, 5:37pm UTC](https://discourse.getcockpit.com/t/addon-additional-api-endpoints/2640/1 "2022-12-20T17:37:42Z")

</div>

I made my first addon for Cockpit v2: [GitHub - witsec/cockpit-api](https://github.com/witsec/cockpit-api)

This addon adds a couple of additional endpoints for the following functionalities:

- Upload files through the API
- Delete one or more files
- Get a list of all folders (useful for when you need a folder ID when uploading files)
- List all entries (published and unpublished) of a model

I hope it’s of use to others. Feel free to grab what you want and tweak it to your liking.
