---
title: "POST /create-passkey"
method: POST
path: "/create-passkey"
tags: ["v2"]
---

# POST /create-passkey

`POST /create-passkey`

## Request body

- CreatePasskey — CreatePasskey is a command that creates a new passkey
  - `accessibility` string — for personal password manager
  - `alg` string, required — Passkey type; options: [EC256, EC384, EC512]
  - `delete_protection` string — Protection from accidental deletion of this object [true/false]
  - `description` string — Description of the object
  - `json` boolean — Set output format to JSON
  - `name` string, required — ClassicKey name
  - `origin-url` string[] — Originating websites for this passkey
  - `protection-key-name` string — The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
  - `tags` string[] — Add tags attached to this object
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `username` string — For Password Management use

## Response `201`

CreatePasskeyResponse wraps response body.

- CreatePasskeyOutput
  - `classic_key_id` string
  - `classic_key_name` string
  - `classic_key_type` string
  - `public_key` string

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
