# Not been able to add POST api method using Flask

**URL:** <https://discuss.huggingface.co/t/not-been-able-to-add-post-api-method-using-flask/158508>\
**Category:** Beginners\
**Created:** [June 8, 2025, 9:49pm UTC](https://discuss.huggingface.co/t/not-been-able-to-add-post-api-method-using-flask/158508 "2025-06-08T21:49:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 9, 2025, 2:41am UTC](https://discuss.huggingface.co/t/not-been-able-to-add-post-api-method-using-flask/158508/2 "2025-06-09T02:41:46Z")

</div>

Hmm… Like this issue?

> [@FastAPI Routing Issue in Hugging Face Spaces](https://discuss.huggingface.co/t/fastapi-routing-issue-in-hugging-face-spaces/54962):
>
> Hello everyone, I’ve deployed a FastAPI application on Hugging Face Spaces. Everything seems to be running smoothly, and there are no errors in the logs. However, when I try to access my endpoints via a browser or tools like Postman, I’m getting a “404 error” or a “Cannot POST” error. Here’s a brief overview of my setup: I have a FastAPI route defined as @app.get("/check\_request") and another one as @app.post("/recommend"). My Dockerfile specifies the CMD as CMD ["uvicorn", "app:app", "--hos…

---

_[View the full topic](https://discuss.huggingface.co/t/not-been-able-to-add-post-api-method-using-flask/158508)._
