Can I call a function through http?

I have a simple function that I want to be exposed via http. I would like third parties to be able to make a request POST like:

curl -X POST https://ae-service.netlify.app/my-function -i '{"some": "json"}'

However, when I go to my deployed functions page, copy the endpoint url, and POST (or GET) to it, I get a 404 error.

Is this possible? If not, then how can I expose my simple web service through netlify?

@aeisenberg It’s likely just a typo, but you can’t expose it via http with Netlify, only https.

Check and make sure your functions URL is correct, since a 404 is obviously “not found”.

Try this for example:

curl -s https://functions.netlify.com/.netlify/functions/hello_async