API broken?

Tortfeaser
Actualizado 2025-11-21 04:58:13 UTC
Tema: Hogar conectado
Hi, I can get my Netro controller info using:

curl -v https://api.netrohome.com/npa/v2/info.json?key=MYAPIKEY

(where MYAPIKEY is a key from the user account page)

but when I try to update soil moisture data with:

curl -X POST -H "Accept: application/json" -H 'Content-Type:application/json' -d '{"key":"MYAPIKEY","moisture":100}' "https://api.netrohome.com/npa/v2/set_moisture.json"

I get an error about an invalid key:

{"status":"ERROR","meta":{"time":"2025-11-21T04:54:56","tid":"1763700896_KpmY","version":"2.0","token_limit":0,"token_remaining":0,"last_active":"2025-11-21T04:54:56","token_reset":"2025-11-22T00:00:00"},"errors":[{"code":1,"message":"Invalid key: ","params":{}}]}

What's going on?

Ver: 14    Seguir: 0   

0 Respuesta