Update API key via API

Hi,

is there a way to update the API key needed to get sensor data?

I got a thingy91 that I can get data from via Rest API. Only thing is that I need to login to my profile and get the new API key. Is there a link where I can do a GET request to update it in my Node-RED project?

best regards,

Sondre

  • Hi Sondre,

    I am not sure if I understand your meaning.

    is there a way to update the API key needed to get sensor data?
    Only thing is that I need to login to my profile and get the new API key.

    Why do you need a new API key? When you generate one API key, you can use it for all your third-party platforms to access nrfcloud through REST API. In which condition, do you need to generate a new one?

    Is there a link where I can do a GET request to update it in my Node-RED project?

    No, a new API key shouldn't be requested through REST API itself. It is a high risk any people using this API can request a new key and block your access.

    Best regards,

    Charlie

  • The thing is that the API key is only available for 1 hour, correct? So I would need to manually login and update the API key, then copy it into my project..?

  • Hi Sondre,

    NO.

    warning Note that previously issued API keys remain valid for up to 60 minutes. means:

    After generating a new key, your old key may still be valid for 1 hour. You can simply keep monitoring your API key for more than one hour to see if it changes.

    Best regards,

    Charlie

Related