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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
ssh_key_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Answer
200. The key, with removed_at set.
{
"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
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
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 | |
fingerprint | string | Yes | OpenSSH's SHA-256 fingerprint, as ssh-keygen -lf prints it. |
public_key | string | Yes | The key's type and base64 body, without its comment. |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
expires_at | string | null | Yes | |
removed_at | string | null | Yes |
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
| Client | Call |
|---|---|
| TypeScript | pod.sshKeys.remove(id) |
| Python | pod.ssh_keys.remove(id) |