# \[TUTORIAL\] Send a sensor value to Gladys via the Gladys Plus Open API HTTP

**URL:** <https://community.gladysassistant.com/t/tutoriel-envoyer-une-valeur-de-capteur-a-gladys-via-lopen-api-http-de-gladys-plus/7148>\
**Category:** Tutoriels\
**Created:** [April 4, 2022, 4:45pm UTC](https://community.gladysassistant.com/t/tutoriel-envoyer-une-valeur-de-capteur-a-gladys-via-lopen-api-http-de-gladys-plus/7148 "2022-04-04T16:45:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 4, 2022, 4:45pm UTC](https://community.gladysassistant.com/t/tutoriel-envoyer-une-valeur-de-capteur-a-gladys-via-lopen-api-http-de-gladys-plus/7148/1 "2022-04-04T16:45:45Z")

</div>

Hello everyone!

It may be practical to send sensor values to Gladys via an HTTP API, to use Gladys with [Tasker on Android](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=fr&gl=US) or [Shortcut on iOS](https://apps.apple.com/us/app/shortcuts/id915249334).

This post is a simple repost of this tutorial from the documentation, but at least it is also on the forum 🙂

> **[Open API | Gladys Assistant](https://gladysassistant.com/fr/docs/plus/open-api/)**
>
> Nous proposons l'Open API Gladys Plus pour permettre aux utilisateurs Gladys Plus d'envoyer des requêtes API depuis l'extérieur de leur réseau.

To send a sensor value to Gladys via the Gladys Plus API, you can send a POST request to the following URL:

```auto
POST https://api.gladysgateway.com/v1/api/device/state/YOUR_API_KEY

Body:
{
    "device_feature_external_id": "mqtt:my-phone-presence",
    "state": 1
}

```

(The API key is to be created in the «&nbsp;Settings&nbsp;» tab =\> «&nbsp;Open API&nbsp;» on [plus.gladysassistant.com](http://plus.gladysassistant.com))

The «&nbsp;device\_feature\_external\_id&nbsp;» corresponds to the external ID of a feature:

 ![create-device-8dba3ad249062eaf083aeb1fd52c8362](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/75eed8266b7058aa16fb957c91486bc163b6b07f.jpeg)

The complete tutorial is available here: [Open API | Gladys Assistant](https://gladysassistant.com/fr/docs/plus/open-api/)

Feel free to ask if you have any questions!
