Remove an SSH key from your account

The key is refused everywhere within 60 seconds, and an SSH connection it opened ends at the front door's next check, 30 seconds later at most.

DELETE/v1/ssh-keys/{ssh_key_id}

The key is refused everywhere within 60 seconds, and an SSH connection it opened ends at the front door's next check, 30 seconds later at most. A repeat is a no-op. Removing needs no fresh second factor, so a lost key is removed at once.

For people only: a signed-in person's token makes this call. An API key is refused with person_required.

Request

curl -X DELETE "https://api.pod.mapier.ai/v1/ssh-keys/ssk_3ahrz6dmv29gqy5ckt18fp" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN"

Parameters

NameInTypeRequiredWhat it is
ssh_key_idpathstringYes
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Answer

200. The key, with removed_at set.

200
{
  "id": "ssk_3ahrz6dmv29gqy5ckt18fp",
  "name": "example",
  "type": "ssh-ed25519",
  "fingerprint": "example",
  "public_key": "example",
  "created_at": "2026-11-23T12:00:00.000Z",
  "expires_at": null,
  "removed_at": null
}
FieldTypeAlwaysWhat it is
idstringYes
namestringYes
type"ssh-ed25519" | "ecdsa-sha2-nistp256" | "ecdsa-sha2-nistp384" | "ecdsa-sha2-nistp521" | "sk-ssh-ed25519@openssh.com" | "sk-ecdsa-sha2-nistp256@openssh.com" | "ssh-rsa"Yes
fingerprintstringYesOpenSSH's SHA-256 fingerprint, as ssh-keygen -lf prints it.
public_keystringYesThe key's type and base64 body, without its comment.
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
expires_atstring | nullYes
removed_atstring | nullYes

Errors

The refusals this call is known for: not_found, person_required. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.sshKeys.remove(id)
Pythonpod.ssh_keys.remove(id)