# Get HF token into custom handler

**URL:** <https://discuss.huggingface.co/t/get-hf-token-into-custom-handler/79355>\
**Category:** Inference Endpoints on the Hub\
**Created:** [March 29, 2024, 10:16pm UTC](https://discuss.huggingface.co/t/get-hf-token-into-custom-handler/79355 "2024-03-29T22:16:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryanhealey](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/bryanhealey/32/25061_2.png) [@bryanhealey](https://discuss.huggingface.co/u/bryanhealey)\
**Post date:** [March 29, 2024, 10:16pm UTC](https://discuss.huggingface.co/t/get-hf-token-into-custom-handler/79355/1 "2024-03-29T22:16:38Z")

</div>

how do I inject my HF token into my endpoint code to use a secured model?
