# Register passkey

Verifies the WebAuthn attestation and stores the new passkey; the session counts as freshly verified. Console session only.

`POST /v1/auth/passkey/register/verify`

Verifies the WebAuthn attestation and stores the new passkey; the session counts as freshly verified. Console session only.

## Request body

```json
{
  "challenge_id": "cha_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "credential": {}
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).

Example 200 response:

```json
{
  "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "label": "Example"
}
```
