# Getting {"error":"no handler found for uri \[/\_security/api\_key\] and method \[POST\]"}

**URL:** <https://discuss.elastic.co/t/getting-error-no-handler-found-for-uri-security-api-key-and-method-post/309757>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 15, 2022, 5:40pm UTC](https://discuss.elastic.co/t/getting-error-no-handler-found-for-uri-security-api-key-and-method-post/309757 "2022-07-15T17:40:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suman\_Thota](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_thota/32/108370_2.png) [@Suman\_Thota](https://discuss.elastic.co/u/Suman_Thota)\
**Post date:** [July 15, 2022, 5:40pm UTC](https://discuss.elastic.co/t/getting-error-no-handler-found-for-uri-security-api-key-and-method-post/309757/1 "2022-07-15T17:40:37Z")

</div>

Getting {"error":"no handler found for uri [/\_security/api\_key] and method [POST]"} when following instructions in [Create API key API | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html) to create an api key.

Elasticsearch version: 8.3.2 on Ubuntu 20.04.4 LTS.

---

<div class="post-metadata">

**Author:** ![Justin\_Cranford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justin_cranford/32/85302_2.png) [@Justin\_Cranford](https://discuss.elastic.co/u/Justin_Cranford)\
**Post date:** [July 15, 2022, 8:39pm UTC](https://discuss.elastic.co/t/getting-error-no-handler-found-for-uri-security-api-key-and-method-post/309757/2 "2022-07-15T20:39:28Z")

</div>

What is your elasticsearch.yml configuration?

Example questions to rule out.

Do you have security and API Keys enabled in config?  
Do you have a license for API Keys? For example, did you install a license, or enable a trial license in config or API?

---

<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:** [August 12, 2022, 8:39pm UTC](https://discuss.elastic.co/t/getting-error-no-handler-found-for-uri-security-api-key-and-method-post/309757/3 "2022-08-12T20:39:59Z")

</div>

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