Add an SSH public key to your account
Adds one OpenSSH public key line, as `~/.ssh/id_ed25519.pub` holds it.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
public_key | string | Yes | One OpenSSH public key line, comment included or not. |
name | string | No | Such as the machine the key lives on. The key's comment when absent, else its type. |
expires_at | string | null | No |
Answer
201. The key.
{
"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: 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
| Client | Call |
|---|---|
| TypeScript | pod.sshKeys.add(publicKey) |
| Python | pod.ssh_keys.add(public_key) |