> ## 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 device registration

> Complete registration of a new WebAuthn device by verifying the credential response. Use the SDK instead of calling this manually. Requires a valid access token.



## OpenAPI

````yaml /swagger.json post /v1/auth/{app_id}/devices/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}/devices/finalize:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
    post:
      tags:
        - WebAuthn
      summary: Finalize WebAuthn device registration
      description: >-
        Complete registration of a new WebAuthn device by verifying the
        credential response. Use the SDK instead of calling this manually.
        Requires a valid access token.
      operationId: finalizeDeviceRegistration
      parameters: []
      responses:
        '200':
          description: device registered successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Credential ID
                  nickname:
                    type: string
                    description: Device nickname
                  user_agent:
                    type: string
                    description: User agent string
        '400':
          description: invalid response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Response is not right
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
        '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
      security:
        - userAccess: []
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

````