ssh_key_already_exists

HTTP 409

SSH key already exists

Type URL

https://developer.hostup.se/errors/ssh_key_already_exists

Detail message

An SSH key with that name or public key already exists on this hosting account.

Example response

{
  "type": "https://developer.hostup.se/errors/ssh_key_already_exists",
  "title": "SSH key already exists",
  "status": 409,
  "detail": "An SSH key with that name or public key already exists on this hosting account.",
  "code": "ssh_key_already_exists",
  "instance": "/api/v2/...",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T12:00:00.000Z"
}

Endpoints that may return this error

Handling this error

const response = await fetch(url, options);

if (!response.ok) {
  const problem = await response.json();

  if (problem.code === "ssh_key_already_exists") {
    // Handle: SSH key already exists
    console.error(problem.detail);
  }
}