Authorizations
Path Parameters
Response
200 - application/vnd.api+json
Success
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.SSHKeys.Retrieve(ctx, "ssh_0MK4O4Zkqa95w")
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "ssh_0MK4O4Zkqa95w",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "skiles.test",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOrRGYU+6bjz8a7DgqNdn4tHIZOp66o6imzvDk1clS4RRGCUwQlk8e0uOf3vEv2EF6QYlPpu+AaSiLryV4cT+RdY4XFLksTVwJ6pH5PIDpfcb+hh5E/HpyDUea38FDyED6+tkz75v6rvcVS7GliLKaHyiawMNqNPBEgEJBNPxwjhgDouhg9qjFcqFbEsKcVF+vZFrCpvTXWjI2O7EqI0es5p6161e88BvnKcVMsKfdpD35n2LwwGm2rK6+mBy1znUS0xDS0XDU8O/hAWPFQHhWj5TpoIrOwpYdfBIP/+tdQwmswD2JedsdcJl0MQMGSs5xSPZqUTB8qIktZ260o11h",
"fingerprint": "06:9f:69:74:ab:43:9b:a6:47:d9:37:15:e2:d5:0d:31",
"created_at": "2025-07-16T18:37:07+00:00",
"updated_at": "2025-07-16T18:37:07+00:00",
"user": {
"id": "user_VGBlzEKMLYIbpXXxZV8mCaKwPYV",
"first_name": "Chuck",
"last_name": "Kemmer",
"email": "[email protected]",
"created_at": "2024-11-17T00:00:00.000Z",
"updated_at": "2025-04-30T00:00:00.000Z",
"role": {
"id": "role_ZR4vkpP58YSGRzy8Qk4XHQeKjQK",
"name": "owner",
"created_at": "2025-02-01T00:00:00.000Z",
"updated_at": "2026-05-25T00:00:00.000Z"
}
}
}
},
"meta": {}
}List all SSH Keys in the project. These keys can be used to access servers after deploy and reinstall actions.
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.SSHKeys.Retrieve(ctx, "ssh_0MK4O4Zkqa95w")
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "ssh_0MK4O4Zkqa95w",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "skiles.test",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOrRGYU+6bjz8a7DgqNdn4tHIZOp66o6imzvDk1clS4RRGCUwQlk8e0uOf3vEv2EF6QYlPpu+AaSiLryV4cT+RdY4XFLksTVwJ6pH5PIDpfcb+hh5E/HpyDUea38FDyED6+tkz75v6rvcVS7GliLKaHyiawMNqNPBEgEJBNPxwjhgDouhg9qjFcqFbEsKcVF+vZFrCpvTXWjI2O7EqI0es5p6161e88BvnKcVMsKfdpD35n2LwwGm2rK6+mBy1znUS0xDS0XDU8O/hAWPFQHhWj5TpoIrOwpYdfBIP/+tdQwmswD2JedsdcJl0MQMGSs5xSPZqUTB8qIktZ260o11h",
"fingerprint": "06:9f:69:74:ab:43:9b:a6:47:d9:37:15:e2:d5:0d:31",
"created_at": "2025-07-16T18:37:07+00:00",
"updated_at": "2025-07-16T18:37:07+00:00",
"user": {
"id": "user_VGBlzEKMLYIbpXXxZV8mCaKwPYV",
"first_name": "Chuck",
"last_name": "Kemmer",
"email": "[email protected]",
"created_at": "2024-11-17T00:00:00.000Z",
"updated_at": "2025-04-30T00:00:00.000Z",
"role": {
"id": "role_ZR4vkpP58YSGRzy8Qk4XHQeKjQK",
"name": "owner",
"created_at": "2025-02-01T00:00:00.000Z",
"updated_at": "2026-05-25T00:00:00.000Z"
}
}
}
},
"meta": {}
}Success
Show child attributes
Was this page helpful?