# How to create an API Key with current user credentials?

**URL:** https://discuss.elastic.co/t/how-to-create-an-api-key-with-current-user-credentials/351876
**Category:** Kibana
**Tags:** kibana-plugin-development
**Created:** [January 26, 2024, 12:47pm UTC](https://discuss.elastic.co/t/how-to-create-an-api-key-with-current-user-credentials/351876 "2024-01-26T12:47:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cyrildaniel](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@cyrildaniel](https://discuss.elastic.co/u/cyrildaniel)
#### Post date: [January 26, 2024, 12:47pm UTC](https://discuss.elastic.co/t/how-to-create-an-api-key-with-current-user-credentials/351876/1 "2024-01-26T12:47:00Z")

</div>

Hey,  
I would like to create an API Key on the ui/server side of my plugin without having to pass any credentials/authorization. I would like to create an API Key based on the credentials that user has input while loading Kibana on startup. Is there any plugin or function I can use to create api key without passing the credential and create it based on the current user.  
Can anyone help me in this?

---

<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: [February 23, 2024, 12:47pm UTC](https://discuss.elastic.co/t/how-to-create-an-api-key-with-current-user-credentials/351876/2 "2024-02-23T12:47:21Z")

</div>

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