> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scute.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Finalize WebAuthn registration

> Finalize a WebAuthn registration ceremony by verifying the credential response from the browser. Returns session tokens upon successful verification. Use the SDK instead of calling this manually.



## OpenAPI

````yaml /swagger.json post /v1/auth/{app_id}/webauthn/register/finalize
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/auth/{app_id}/webauthn/register/finalize:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
    post:
      tags:
        - WebAuthn
      summary: Finalize WebAuthn registration
      description: >-
        Finalize a WebAuthn registration ceremony by verifying the credential
        response from the browser. Returns session tokens upon successful
        verification. Use the SDK instead of calling this manually.
      operationId: finalizeWebAuthnRegistration
      parameters: []
      responses:
        '200':
          description: registration successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  access:
                    type: string
                    description: JWT access token
                  refresh:
                    type: string
                    description: JWT refresh token
                  csrf:
                    type: string
                    description: CSRF token for protected operations
                  access_expires_at:
                    type: string
                    format: date-time
                    description: Access token expiration timestamp
                  refresh_expires_at:
                    type: string
                    format: date-time
                    description: Refresh token expiration timestamp
                  user_id:
                    type: string
                    description: App user ID
                  key_id:
                    type: string
                    description: App key ID for JWT verification
                  credential_id:
                    type: string
                    description: WebAuthn credential ID
        '404':
          description: webauthn session not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Webauthn session not found
                  error_code:
                    type: string
                    example: session_not_found
        '502':
          description: webauthn verification error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Webauthn verification error
                  error_code:
                    type: string
                    example: webauthn_verification_error
components:
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````