# Web Thing API

**URL:** <https://discourse.mozilla.org/t/web-thing-api/66271>\
**Category:** WebThings\
**Created:** [August 24, 2020, 6:02am UTC](https://discourse.mozilla.org/t/web-thing-api/66271 "2020-08-24T06:02:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahsa.mohammadpourghaeni](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mahsa.mohammadpourghaeni](https://discourse.mozilla.org/u/mahsa.mohammadpourghaeni)\
**Post date:** [August 24, 2020, 6:02am UTC](https://discourse.mozilla.org/t/web-thing-api/66271/1 "2020-08-24T06:02:55Z")

</div>

Hi,  
I want to use your Web Thing API in my .NetCore project to to access the properties of devices and request the execution of actions.  
Where can I find this API and how can I use it in my project?  
Thanks

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [August 24, 2020, 6:10am UTC](https://discourse.mozilla.org/t/web-thing-api/66271/2 "2020-08-24T06:10:06Z")

</div>

Are you wanting to control the gateway? The API is documented here: [https://iot.mozilla.org/wot/](https://iot.mozilla.org/wot/)

In your gateway UI, you can navigate to _Settings -\> Developer_ and create a local authentication token to use with your API calls.

---

<div class="post-metadata">

**Author:** ![mahsa.mohammadpourghaeni](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mahsa.mohammadpourghaeni](https://discourse.mozilla.org/u/mahsa.mohammadpourghaeni)\
**Post date:** [August 24, 2020, 7:42am UTC](https://discourse.mozilla.org/t/web-thing-api/66271/3 "2020-08-24T07:42:45Z")

</div>

thanks for your reply,  
I don’t know how can I have access to the URL of this API to call it .  
for example I want to send the request of turning the lamp on, but I can’t figure out what to call for this action.  
or how to implement this API on our devices…

---

<div class="post-metadata">

**Author:** ![mrstegeman](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mrstegeman](https://discourse.mozilla.org/u/mrstegeman)\
**Post date:** [August 24, 2020, 5:59pm UTC](https://discourse.mozilla.org/t/web-thing-api/66271/4 "2020-08-24T17:59:46Z")

</div>

Since you posted elsewhere already, let’s move the discussion there: [Implement Web Thing API](https://discourse.mozilla.org/t/implement-web-thing-api/66280)
