# API key: unable to find apikey with id

**URL:** <https://discuss.elastic.co/t/api-key-unable-to-find-apikey-with-id/322104>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [December 28, 2022, 2:57pm UTC](https://discuss.elastic.co/t/api-key-unable-to-find-apikey-with-id/322104 "2022-12-28T14:57:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 28, 2022, 5:10pm UTC](https://discuss.elastic.co/t/api-key-unable-to-find-apikey-with-id/322104/2 "2022-12-28T17:10:32Z")

</div>

Hi @chaserb

You are using the wrong type of API key.

The docs you referenced are to create an Elasticsearch "Service" API key to operate on elasticsearch deployments in other words, API key to allow you to create, update, delete deployments not an API key to work on the data within a deployment.

For the operation you are trying...the elasticsearch normal REST APIs you need to create a "normal" API KEY from within Kibana

> **[API Keys | Kibana Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/kibana/current/api-keys.html)**
>
> Conceptual and step-by-step procedures for using runtime fields, scripted fields, and field formatters.

Or directly from the Security REST API

> **[Create API key API | Elasticsearch Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html)**

Two entirely separate APIs

One to work CRUD entire elasticsearch deployments

And the normal elasticsearch APIs that work within an elasticsearch cluster

---

_[View the full topic](https://discuss.elastic.co/t/api-key-unable-to-find-apikey-with-id/322104)._
