# Register consumer passkey

Stores the consumer's new passkey from the WebAuthn credential. Anyone holding a pending consent token; rate limited to 30 requests per minute per IP.

`POST /v1/public/consent/{token}/passkey`

Stores the consumer's new passkey from the WebAuthn credential. Anyone holding a pending consent token; rate limited to 30 requests per minute per IP.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `token` | path | yes | One-time consent token from the link the platform sent the consumer (valid 24 hours). |

## Request body

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

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **404**: The resource does not exist or belongs to another organization.
- **429**: Too many requests; retry later.

Example 200 response:

```json
{
  "ok": true,
  "passkey": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "label": "Example"
  }
}
```
