# Access Token for the API

**URL:** <https://forum.sensor.community/t/access-token-for-the-api/2528>\
**Category:** Feature Requests\
**Created:** [January 6, 2024, 11:10am UTC](https://forum.sensor.community/t/access-token-for-the-api/2528 "2024-01-06T11:10:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![v6tunnler](https://forum.sensor.community/user_avatar/forum.sensor.community/v6tunnler/32/1640_2.png) [@v6tunnler](https://forum.sensor.community/u/v6tunnler)\
**Post date:** [January 6, 2024, 11:10am UTC](https://forum.sensor.community/t/access-token-for-the-api/2528/1 "2024-01-06T11:10:46Z")

</div>

Hello,

First of all: devices.sensor.community has a really nice WebUi and is very functional. Well done 👍

Would it be possible to add a (optional) “Access Token/Authentication” function to the [sensor.community API](https://github.com/opendata-stuttgart/meta/wiki/APIs) in order to prevent unauthorized data submission?

Thank you 🙂

Example:

 ![Screenshot 2024-01-06 at 12-05-02 Sensor.Community](https://forum.sensor.community/uploads/default/original/2X/8/8724c26676f755bffcb6fdabd6a83c8c4c9293c7.png)

---

<div class="post-metadata">

**Author:** ![bertrik](https://forum.sensor.community/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@bertrik](https://forum.sensor.community/u/bertrik)\
**Post date:** [January 8, 2024, 12:22pm UTC](https://forum.sensor.community/t/access-token-for-the-api/2528/2 "2024-01-08T12:22:07Z")

</div>

Just wondering, why are you asking about this?

Are you worried that someone would be submitting false information on your behalf?  
Do you think this might already be happening in the sensor network?  
Or are you worried in a general sense about a lack of authorization?

I am running a LoRaWAN forwarder. My forwarder is basically doing that, impersonating several sensor.community nodes on behalf of actual nodes, without actually being a node itself. I saw that the firmware has an option to use https towards the server to verify the server is authentic, however without any authentication of the node itself and have been wondering about this somewhat strange security scheme.

---

<div class="post-metadata">

**Author:** ![v6tunnler](https://forum.sensor.community/user_avatar/forum.sensor.community/v6tunnler/32/1640_2.png) [@v6tunnler](https://forum.sensor.community/u/v6tunnler)\
**Post date:** [January 8, 2024, 2:00pm UTC](https://forum.sensor.community/t/access-token-for-the-api/2528/3 "2024-01-08T14:00:01Z")

</div>

> [@bertrik](#):
>
> Just wondering, why are you asking about this?
> 
> Are you worried that someone would be submitting false information on your behalf?  
> Do you think this might already be happening in the sensor network?  
> Or are you worried in a general sense about a lack of authorization?

Well, I was searching for the api key (in order to submit sensor data using my RasPi), but then noticed that the sensor.community api does not require an api key at all. OpenSenseMap (for example) has the option to enable the api key functions.

---

<div class="post-metadata">

**Author:** ![ajc](https://forum.sensor.community/user_avatar/forum.sensor.community/ajc/32/1627_2.png) [@ajc](https://forum.sensor.community/u/ajc)\
**Post date:** [January 8, 2024, 4:25pm UTC](https://forum.sensor.community/t/access-token-for-the-api/2528/4 "2024-01-08T16:25:24Z")

</div>

there is no need to create access token or anything like that. Sensor UID, which you have to came out yourself acts like password. So don’t share sensor uid with anyone and no one will submits any data unauthorized 🙂

---

<div class="post-metadata">

**Author:** ![v6tunnler](https://forum.sensor.community/user_avatar/forum.sensor.community/v6tunnler/32/1640_2.png) [@v6tunnler](https://forum.sensor.community/u/v6tunnler)\
**Post date:** [January 8, 2024, 4:31pm UTC](https://forum.sensor.community/t/access-token-for-the-api/2528/5 "2024-01-08T16:31:54Z")

</div>

Hi,

Thanks for the reply :-).

_sensor UID_ is the ChipID of the NodeMCU or something else?

The serial (ChipID) is public accessible via [https://api-rrd.madavi.de:3000/grafana/](https://api-rrd.madavi.de:3000/grafana/)

But i may be wrong…

---

<div class="post-metadata">

**Author:** ![ajc](https://forum.sensor.community/user_avatar/forum.sensor.community/ajc/32/1627_2.png) [@ajc](https://forum.sensor.community/u/ajc)\
**Post date:** [January 8, 2024, 4:52pm UTC](https://forum.sensor.community/t/access-token-for-the-api/2528/6 "2024-01-08T16:52:03Z")

</div>

these are two different thinks. Why you don’t register one sensor and check:  
[https://devices.sensor.community/sensors/register](https://devices.sensor.community/sensors/register)
