curl --request POST \
--url https://api.latitude.sh/projects/{project_id}/ssh_keys \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "ssh_keys",
"attributes": {
"name": "SSH Key",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOLFnjGP3Jsh1usHNS2EILgfqZNC9pOvNqBZqxH+qNAdZdQCzy2csMuiq+ZwLA8Mm4Vo5CvSgBHs/kuZRUKyTl+79YUMZIj8PhHzL4XbdqX1ZnAIklHWcJaveB0+UXLEPKGzFIFq+FkuwtiXQsVe5NnSpIDYgpzhqEs38NsnXvsubKphGUdARDhaxvMdUUl4YsAtLHKMzSyIvE6xwfTtIVwA9bZt/8GoBzrn9px9PEcf25Rgd2NhOYs3WYcZuwvRmfcFdi2vGhVqTPqL9n16R/n5jknxHYrTyqWNxJdpdvg2YqXpN7vnFNoOjYFD6EahJ0pF/+WL4tPCIkLfoaVaSx"
}
}
}
'{
"data": {
"id": "ssh_w5AEmq7XDBkWX",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "SSH Key",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOLFnjGP3Jsh1usHNS2EILgfqZNC9pOvNqBZqxH+qNAdZdQCzy2csMuiq+ZwLA8Mm4Vo5CvSgBHs/kuZRUKyTl+79YUMZIj8PhHzL4XbdqX1ZnAIklHWcJaveB0+UXLEPKGzFIFq+FkuwtiXQsVe5NnSpIDYgpzhqEs38NsnXvsubKphGUdARDhaxvMdUUl4YsAtLHKMzSyIvE6xwfTtIVwA9bZt/8GoBzrn9px9PEcf25Rgd2NhOYs3WYcZuwvRmfcFdi2vGhVqTPqL9n16R/n5jknxHYrTyqWNxJdpdvg2YqXpN7vnFNoOjYFD6EahJ0pF/+WL4tPCIkLfoaVaSx",
"fingerprint": "0a:00:34:53:51:0e:a5:4e:06:2c:d7:16:88:96:82:f3",
"created_at": "2026-01-14T15:56:41+00:00",
"updated_at": "2026-01-14T15:56:41+00:00",
"project": {
"id": "proj_059EqYE2qQj8p",
"name": "Incredible Silk Pants",
"slug": "incredible-silk-pants",
"description": "Lightweight Iron Bench",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"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_geJbN1G962iVzBrra7R9TkaXw28",
"first_name": "Fletcher",
"last_name": "Thompson",
"email": "[email protected]",
"created_at": "2025-12-31T00:00:00.000Z",
"updated_at": "2025-05-16T00:00:00.000Z",
"role": {
"id": "role_QJ5olj6Jk7uWz0ybo0XkcXYZegPo",
"name": "owner",
"created_at": "2025-12-23T00:00:00.000Z",
"updated_at": "2026-03-20T00:00:00.000Z"
}
}
}
},
"meta": {}
}Allow you create SSH Keys in a project. These keys can be used to access servers after deploy and reinstall actions.
curl --request POST \
--url https://api.latitude.sh/projects/{project_id}/ssh_keys \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "ssh_keys",
"attributes": {
"name": "SSH Key",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOLFnjGP3Jsh1usHNS2EILgfqZNC9pOvNqBZqxH+qNAdZdQCzy2csMuiq+ZwLA8Mm4Vo5CvSgBHs/kuZRUKyTl+79YUMZIj8PhHzL4XbdqX1ZnAIklHWcJaveB0+UXLEPKGzFIFq+FkuwtiXQsVe5NnSpIDYgpzhqEs38NsnXvsubKphGUdARDhaxvMdUUl4YsAtLHKMzSyIvE6xwfTtIVwA9bZt/8GoBzrn9px9PEcf25Rgd2NhOYs3WYcZuwvRmfcFdi2vGhVqTPqL9n16R/n5jknxHYrTyqWNxJdpdvg2YqXpN7vnFNoOjYFD6EahJ0pF/+WL4tPCIkLfoaVaSx"
}
}
}
'{
"data": {
"id": "ssh_w5AEmq7XDBkWX",
"type": "ssh_keys",
"attributes": {
"tags": [],
"name": "SSH Key",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOLFnjGP3Jsh1usHNS2EILgfqZNC9pOvNqBZqxH+qNAdZdQCzy2csMuiq+ZwLA8Mm4Vo5CvSgBHs/kuZRUKyTl+79YUMZIj8PhHzL4XbdqX1ZnAIklHWcJaveB0+UXLEPKGzFIFq+FkuwtiXQsVe5NnSpIDYgpzhqEs38NsnXvsubKphGUdARDhaxvMdUUl4YsAtLHKMzSyIvE6xwfTtIVwA9bZt/8GoBzrn9px9PEcf25Rgd2NhOYs3WYcZuwvRmfcFdi2vGhVqTPqL9n16R/n5jknxHYrTyqWNxJdpdvg2YqXpN7vnFNoOjYFD6EahJ0pF/+WL4tPCIkLfoaVaSx",
"fingerprint": "0a:00:34:53:51:0e:a5:4e:06:2c:d7:16:88:96:82:f3",
"created_at": "2026-01-14T15:56:41+00:00",
"updated_at": "2026-01-14T15:56:41+00:00",
"project": {
"id": "proj_059EqYE2qQj8p",
"name": "Incredible Silk Pants",
"slug": "incredible-silk-pants",
"description": "Lightweight Iron Bench",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"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_geJbN1G962iVzBrra7R9TkaXw28",
"first_name": "Fletcher",
"last_name": "Thompson",
"email": "[email protected]",
"created_at": "2025-12-31T00:00:00.000Z",
"updated_at": "2025-05-16T00:00:00.000Z",
"role": {
"id": "role_QJ5olj6Jk7uWz0ybo0XkcXYZegPo",
"name": "owner",
"created_at": "2025-12-23T00:00:00.000Z",
"updated_at": "2026-03-20T00:00:00.000Z"
}
}
}
},
"meta": {}
}Was this page helpful?