Skip to content
Dashboard
Theme
Theme

Finish registering a passkey for an end user (headless)

POST /v1/users/{user}/passkeys: Finish registering a passkey for an end user (headless).

View Markdown

POST /v1/users/{user}/passkeys

Verifies the attestation response of the ceremony started by registration_options for the same user. Errors: webauthn_invalid.

Scope
users:write
Auth
Secret key (sk_…)
Since
1.0
  • user string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • credential object Required

  • name string

    min length 1 · max length 100

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/users/usr_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/passkeys" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"credential": {}
}'
Response 201
{
"id": "ucred_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "factor",
"type": "passkey",
"name": "Acme Corp",
"confirmed": true,
"created_at": "2026-01-15T09:30:00Z",
"last_used_at": "2026-01-15T09:30:00Z"
}