Add an SSH public key to your account

Adds one OpenSSH public key line, as `~/.ssh/id_ed25519.pub` holds it.

POST/v1/ssh-keys

Adds one OpenSSH public key line, as ~/.ssh/id_ed25519.pub holds it. Pod takes Ed25519, ECDSA, their hardware (sk-) forms and RSA of at least 2048 bits. A key is unique across Pod: one that is already added, by anyone, is conflict, because the front door finds the person by it. A person holds at most 50 keys (conflict past it). Like making an API key, it takes a signed-in person with a fresh second factor. The key reaches the cells on each organization's signed ssh_keys list within 60 seconds.

For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.

Request

curl -X POST "https://api.pod.mapier.ai/v1/ssh-keys" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"public_key":"example"}'

Parameters

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

Body

FieldTypeRequiredWhat it is
public_keystringYesOne OpenSSH public key line, comment included or not.
namestringNoSuch as the machine the key lives on. The key's comment when absent, else its type.
expires_atstring | nullNo

Answer

201. The key.

201
{
  "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: invalid, conflict, 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.add(publicKey)
Pythonpod.ssh_keys.add(public_key)