# Pass a signed search key through request body instead of header?

**URL:** <https://discuss.elastic.co/t/pass-a-signed-search-key-through-request-body-instead-of-header/345585>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [October 23, 2023, 5:05pm UTC](https://discuss.elastic.co/t/pass-a-signed-search-key-through-request-body-instead-of-header/345585 "2023-10-23T17:05:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ismaelalt](https://avatars.discourse-cdn.com/v4/letter/i/aeb1de/32.png) [@ismaelalt](https://discuss.elastic.co/u/ismaelalt)\
**Post date:** [October 23, 2023, 5:05pm UTC](https://discuss.elastic.co/t/pass-a-signed-search-key-through-request-body-instead-of-header/345585/1 "2023-10-23T17:05:57Z")

</div>

I'm using [signed search keys](https://www.elastic.co/guide/en/app-search/current/authentication.html#authentication-signed) to enforce some visibility rules depending on the user performing search requests.

But an issue arise: the maximum header size for App Search is 8KB, which is regularly exceeded for my use case.

I have explored ways to optimize length of search filters that we include in the signed key.

In parallel, I was wondering whether it was possible to pass the signed search key not through Authorization header, but via request body?

Thanks!

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [October 27, 2023, 10:54am UTC](https://discuss.elastic.co/t/pass-a-signed-search-key-through-request-body-instead-of-header/345585/2 "2023-10-27T10:54:02Z")

</div>

Hi @ismaelalt !

I'm afraid it's not possible to use API Keys through other means that are not the request header.

---

<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:** [November 24, 2023, 10:54am UTC](https://discuss.elastic.co/t/pass-a-signed-search-key-through-request-body-instead-of-header/345585/3 "2023-11-24T10:54:44Z")

</div>

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