Authorizations
Query Parameters
Project ID or slug
The tags ids to filter by, separated by comma, e.g. filter[tags]=tag_1,tag_2will return ssh keys with tag_1 AND tag_2
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.ListAll(ctx, nil, latitudeshgosdk.Pointer("tag_lYXenaknWwsJ4rryVbNoUbn6p4V,tag_ARJPX1YRrgTKQ4xpvX5YuWNG2nwW"))
if err != nil {
log.Fatal(err)
}
if res.SSHKeys != nil {
// handle response
}
}{
"data": [
{
"id": "ssh_aNmodj4eDbE8W",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "shields-lind.test",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAifZt83PbEYnFX/pVfbUAw+hN60eTak5x3EqSUAG2vUrchJiU+V5fVj9H1IstDOB3clhEGiAqxby+Bur9lp3mWSXvRoPo85VU5OH7DS/+8GFUKGtLpHPI7It+ZEq/LaIq8p1VIwql77SBbaUYgKJxWobfJPpQgipr2kphrrfXkqeqP/W0tLKHq6XYzKFl0dZWdduDDZ9ltfZJcLRnYMOMqh6rVw79lOIi6HCxANNoxEKE0p4qUaOWbGRknOADD4qlES7vZWRindKSRgN0jf21STzzzXdB9o4PQmHM/q39UbjBvFppE0NVwD5oBC7Vkej7GnoUxwUgwjgC4fDrZM2X",
"fingerprint": "62:cd:46:63:46:c4:2b:19:47:9f:9e:19:f9:d8:be:87",
"created_at": "2025-07-16T18:37:05+00:00",
"updated_at": "2025-07-16T18:37:05+00:00",
"user": {
"id": "user_5m68r767gNC5G528wokRFW2lLPy",
"first_name": "Harris",
"last_name": "Mills",
"email": "[email protected]",
"created_at": "2024-12-09T00:00:00.000Z",
"updated_at": "2024-07-20T00:00:00.000Z",
"role": {
"id": "role_P2QbX40bZnu4J37oVba2TaQYp5M",
"name": "owner",
"created_at": "2025-03-15T00:00:00.000Z",
"updated_at": "2026-06-22T00: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.ListAll(ctx, nil, latitudeshgosdk.Pointer("tag_lYXenaknWwsJ4rryVbNoUbn6p4V,tag_ARJPX1YRrgTKQ4xpvX5YuWNG2nwW"))
if err != nil {
log.Fatal(err)
}
if res.SSHKeys != nil {
// handle response
}
}{
"data": [
{
"id": "ssh_aNmodj4eDbE8W",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "shields-lind.test",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAifZt83PbEYnFX/pVfbUAw+hN60eTak5x3EqSUAG2vUrchJiU+V5fVj9H1IstDOB3clhEGiAqxby+Bur9lp3mWSXvRoPo85VU5OH7DS/+8GFUKGtLpHPI7It+ZEq/LaIq8p1VIwql77SBbaUYgKJxWobfJPpQgipr2kphrrfXkqeqP/W0tLKHq6XYzKFl0dZWdduDDZ9ltfZJcLRnYMOMqh6rVw79lOIi6HCxANNoxEKE0p4qUaOWbGRknOADD4qlES7vZWRindKSRgN0jf21STzzzXdB9o4PQmHM/q39UbjBvFppE0NVwD5oBC7Vkej7GnoUxwUgwjgC4fDrZM2X",
"fingerprint": "62:cd:46:63:46:c4:2b:19:47:9f:9e:19:f9:d8:be:87",
"created_at": "2025-07-16T18:37:05+00:00",
"updated_at": "2025-07-16T18:37:05+00:00",
"user": {
"id": "user_5m68r767gNC5G528wokRFW2lLPy",
"first_name": "Harris",
"last_name": "Mills",
"email": "[email protected]",
"created_at": "2024-12-09T00:00:00.000Z",
"updated_at": "2024-07-20T00:00:00.000Z",
"role": {
"id": "role_P2QbX40bZnu4J37oVba2TaQYp5M",
"name": "owner",
"created_at": "2025-03-15T00:00:00.000Z",
"updated_at": "2026-06-22T00:00:00.000Z"
}
}
}
}
],
"meta": {}
}Project ID or slug
The tags ids to filter by, separated by comma, e.g. filter[tags]=tag_1,tag_2will return ssh keys with tag_1 AND tag_2
Was this page helpful?