Skip to main content
POST
/
tunnelkeys
/
Create a tunnel key
curl --request POST \
  --url https://dashboard.hologram.io/api/1/tunnelkeys/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "public_key": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": 123,
    "userid": 123,
    "public_key": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "private_key": "<string>"
  }
}

Authorizations

Authorization
string
header
required

HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key. You can find your API key on the Hologram Dashboard under Account Settings.

Body

application/json
public_key
string

OpenSSH-format RSA public key; if omitted the server generates a keypair

Response

OK

success
boolean

Indicates whether the request was successful.

Example:

true

data
object