---
title: "Create passkey"
method: POST
path: "/v1/projects/{project_id}/passkeys"
tags: ["passkeys"]
---

# Create passkey

`POST /v1/projects/{project_id}/passkeys`

## Request

- Base URL: `https://api.connic.co`
- URL: `https://api.connic.co/v1/projects/{project_id}/passkeys`
- Auth: HTTP bearer

Creates a pending passkey.

The first passkey that the browser of a run with the passkey in `browser.passkeys`
registers on `rp_id` is stored, and the passkey becomes `ready`.

Required permission: `passkeys.manage`.

## Path parameters

- `project_id` string, uuid, required

## Request body

- PasskeyCreate: Pending passkey that a run's browser fills by registering a passkey on the domain.
  - `environment_id` string, uuid, required
  - `name` string, required: Name agents reference in `browser.passkeys`. 1-64 lowercase letters, digits, hyphens, or underscores.
  - `rp_id` string, required: Domain the passkey signs in on, such as `portal.example.com`.

## Response `200`

Successful Response

- PasskeyResponse: Passkey that agent browsers in the environment sign in with. Key material is never returned.
  - `id` string, uuid, required
  - `environment_id` string, uuid, required: Environment the passkey belongs to.
  - `name` string, required: Name agents reference in `browser.passkeys`. Unique per environment.
  - `rp_id` string, required: Domain the passkey signs in on.
  - `status` 'pending' | 'ready', required: `pending` until a run's browser registers a passkey on `rp_id` or one is imported, then `ready`.
  - `created_at` string, required
  - `updated_at` string, required
  - `last_used_at` string, nullable, required: When a run's browser last signed in with the passkey, or null if never.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required permission or access to the environment.
- `422`: Validation Error
- `429`: Rate limit exceeded.

## Changes

- **2026-11-02** `be777e2c0fe3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/connic/apis/connic-api/changes/v1/projects/:project_id/passkeys/post.md)

---

[API](https://skmtc.dev/connic/apis/connic-api.md) - [All operations](https://skmtc.dev/connic/apis/connic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/connic/apis/connic-api/revisions/da5f0d500a9d?raw)
