This guide reviews how to add a Spacebridge key using the Hologram REST API. Spacebridge allows you to remotely access your devices using secure authenticated tunnels.
First, get your key's ID. Make the following request:
GET https://dashboard.hologram.io/api/1/tunnelkeys?withdisabled=0&userid=[YOUR_USER_ID]
The response will look like this:

To enable a key, make the following request:
POST https://dashboard.hologram.io/api/1/tunnelkeys/YOUR_SPACEBRIDGE_KEY_ID/enable
To disable a key, make the following request:
POST https://dashboard.hologram.io/api/1/tunnelkeys/YOUR_SPACEBRIDGE_KEY_ID/disable