Retrieve Project SSH Key
curl --request GET \
--url https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ssh_zGr47qlMDAg0m",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "breitenberg-blick.test",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCUO+zsQdGJJGFIJT6R9PRgnfpA1NiIMBmfZK13pmAsC/aEr4TvJT+q60U2DZVeQi2AxdPwk3JrGpOgDUOKA9M6FlCXjCMWS5VINwbt6+P7ZCSThqdPPETrcDNd2wgNs+Q5kxRHqlknDu4KszIf14cXNnWCYjCly2+wV/Y17XuHGhHnzRSCf30mNtqQngKqkOHOB+G2P8RaZ6g70wOOoSlDRo3mxQ0vA62U25FeTbFdhkIrFDYsPX+4JL1bXYkRD3KIbfvH99RHtd/wtcqwpUuHoKdyiUNyJFBvtj912zVh+0n8zfe58Rmz0J9wGCTir3Qh/FwAVKB2kLpRHde7kZlv",
"fingerprint": "47:0f:68:b5:e7:4c:5c:32:b6:97:3d:e9:17:df:6d:93",
"created_at": "2026-01-14T15:56:41+00:00",
"updated_at": "2026-01-14T15:56:41+00:00",
"project": {
"id": "proj_kjQwdE0XOYNVP",
"name": "Intelligent Rubber Bench",
"slug": "intelligent-rubber-bench",
"description": "Rustic Linen Clock",
"provisioning_type": "on_demand",
"billing_type": "Hourly",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
}
},
"user": {
"id": "user_0VVWJmQwmzUyMYL0Zv37FwW0aWVP",
"first_name": "Margarete",
"last_name": "Huels",
"email": "charlie@okeefe.example",
"created_at": "2025-09-01T00:00:00.000Z",
"updated_at": "2025-12-20T00:00:00.000Z",
"role": {
"id": "role_jZxLKXzGNXt0PYgaW4QbfKMPEgM",
"name": "owner",
"created_at": "2025-03-24T00:00:00.000Z",
"updated_at": "2026-06-05T00:00:00.000Z"
}
}
}
},
"meta": {}
}SSH Keys
Retrieve Project SSH Key
deprecated
List all SSH Keys in the project. These keys can be used to access servers after deploy and reinstall actions.
GET
/
projects
/
{project_id}
/
ssh_keys
/
{ssh_key_id}
Retrieve Project SSH Key
curl --request GET \
--url https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "ssh_zGr47qlMDAg0m",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "breitenberg-blick.test",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCUO+zsQdGJJGFIJT6R9PRgnfpA1NiIMBmfZK13pmAsC/aEr4TvJT+q60U2DZVeQi2AxdPwk3JrGpOgDUOKA9M6FlCXjCMWS5VINwbt6+P7ZCSThqdPPETrcDNd2wgNs+Q5kxRHqlknDu4KszIf14cXNnWCYjCly2+wV/Y17XuHGhHnzRSCf30mNtqQngKqkOHOB+G2P8RaZ6g70wOOoSlDRo3mxQ0vA62U25FeTbFdhkIrFDYsPX+4JL1bXYkRD3KIbfvH99RHtd/wtcqwpUuHoKdyiUNyJFBvtj912zVh+0n8zfe58Rmz0J9wGCTir3Qh/FwAVKB2kLpRHde7kZlv",
"fingerprint": "47:0f:68:b5:e7:4c:5c:32:b6:97:3d:e9:17:df:6d:93",
"created_at": "2026-01-14T15:56:41+00:00",
"updated_at": "2026-01-14T15:56:41+00:00",
"project": {
"id": "proj_kjQwdE0XOYNVP",
"name": "Intelligent Rubber Bench",
"slug": "intelligent-rubber-bench",
"description": "Rustic Linen Clock",
"provisioning_type": "on_demand",
"billing_type": "Hourly",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
}
},
"user": {
"id": "user_0VVWJmQwmzUyMYL0Zv37FwW0aWVP",
"first_name": "Margarete",
"last_name": "Huels",
"email": "charlie@okeefe.example",
"created_at": "2025-09-01T00:00:00.000Z",
"updated_at": "2025-12-20T00:00:00.000Z",
"role": {
"id": "role_jZxLKXzGNXt0PYgaW4QbfKMPEgM",
"name": "owner",
"created_at": "2025-03-24T00:00:00.000Z",
"updated_at": "2026-06-05T00:00:00.000Z"
}
}
}
},
"meta": {}
}Was this page helpful?
⌘I