# Https web API that receives files

**URL:** <https://discourse.nodered.org/t/https-web-api-that-receives-files/45581>\
**Category:** General\
**Created:** [13 May 2021 09:20 UTC](https://discourse.nodered.org/t/https-web-api-that-receives-files/45581 "2021-05-13T09:20:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucatxt](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lucatxt](https://discourse.nodered.org/u/lucatxt)\
**Post date:** [13 May 2021 09:20 UTC](https://discourse.nodered.org/t/https-web-api-that-receives-files/45581/1 "2021-05-13T09:20:05Z")

</div>

Hi,  
How can I create an API over https (with certificate) that receives a csv/xml file from an external source? This API should be called only with valid credentials (username and password).

Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 May 2021 09:45 UTC](https://discourse.nodered.org/t/https-web-api-that-receives-files/45581/2 "2021-05-13T09:45:56Z")

</div>

There is a demo in the flows library that will get you started...  
[https://flows.nodered.org/flow/c70d0b4c54b583cf30c7e989b74feb68](https://flows.nodered.org/flow/c70d0b4c54b583cf30c7e989b74feb68)  
...You dont necessarily need the frontend stuff (you can remove it).

  

As for https/certs - search the forum (this has been covered a few times) - [here is one such article](https://discourse.nodered.org/t/node-red-ssl-using-letsencrypt-certbot/17606)

As for "credentials (username and password)" see the official documentation ["securing-node-red"](https://nodered.org/docs/user-guide/runtime/securing-node-red)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 July 2021 09:46 UTC](https://discourse.nodered.org/t/https-web-api-that-receives-files/45581/3 "2021-07-12T09:46:03Z")

</div>

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