# How to get Huggingface token via an API POST method?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-get-huggingface-token-via-an-api-post-method%2F51473%3E%5C
**Category:** Beginners\
**Created:** [August 21, 2023, 7:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-get-huggingface-token-via-an-api-post-method%2F51473 "2023-08-21T07:31:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmond](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jasmond](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjasmond)%5C
**Post date:** [August 21, 2023, 7:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-get-huggingface-token-via-an-api-post-method%2F51473%2F1 "2023-08-21T07:31:49Z")

</div>

Can a Huggingface token be created via API Post method that uses login credentials (username and password) in the authentication process?

I would like to streamline the token turnover process.

---

<div class="post-metadata">

**Author:** ![amin-nejad](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/amin-nejad/32/17515_2.png) [@amin-nejad](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Famin-nejad)%5C
**Post date:** [September 28, 2023, 11:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-get-huggingface-token-via-an-api-post-method%2F51473%2F2 "2023-09-28T11:24:42Z")

</div>

+1 - I suspect the answer is no but I’m also interested in this
