> ## 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.

# Initialize WebAuthn registration

> Initialize a WebAuthn registration ceremony. This endpoint creates a new user (if they don't exist) and returns the challenge options for the browser's WebAuthn API. Use the SDK instead of calling this manually.



## OpenAPI

````yaml /swagger.json post /v1/auth/{app_id}/webauthn/register/initialize
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/initialize:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
    post:
      tags:
        - WebAuthn
      summary: Initialize WebAuthn registration
      description: >-
        Initialize a WebAuthn registration ceremony. This endpoint creates a new
        user (if they don't exist) and returns the challenge options for the
        browser's WebAuthn API. Use the SDK instead of calling this manually.
      operationId: initializeWebAuthnRegistration
      parameters: []
      responses:
        '200':
          description: challenge created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_verification:
                    type: string
                    example: required
                    description: User verification requirement
                  options:
                    type: object
                    description: >-
                      WebAuthn credential creation options containing the
                      challenge
                  user_meta_errors:
                    type: object
                    nullable: true
                    description: Validation errors for user metadata if provided
        '400':
          description: invalid identifier
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  error_code:
                    type: string
                    example: invalid_identifier
        '409':
          description: user already exists
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: User already exists
                  error_code:
                    type: string
                    example: user_exists
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

````