---
agentTools:
  projectIndex: https://docs.autharmor.com/llms.txt
---

# Validate User Registration for WebAuthn

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Auth Armor - Auth Anywhere API",
    "version": "v4"
  },
  "servers": [
    {
      "url": "https://api.autharmor.com"
    }
  ],
  "paths": {
    "/v4/users/registrations/webauthn/{registration_id}/validate": {
      "post": {
        "tags": [
          "User Registrations - WebAuthn"
        ],
        "summary": "  Validate User Registration for WebAuthn",
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/validate_webauthn_registration_request"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/validate_webauthn_registration_request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/validate_webauthn_registration_request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/validate_webauthn_registration_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/validate_webauthn_registration_response"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/validate_webauthn_registration_response"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/validate_webauthn_registration_response"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "validate_webauthn_registration_request": {
        "type": "object",
        "properties": {
          "registration_validation_token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "validate_webauthn_registration_response": {
        "type": "object",
        "properties": {
          "credential_id": {
            "type": "string",
            "format": "uuid"
          },
          "user_id": {
            "type": "string",
            "format": "uuid"
          },
          "username": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "JWT Authorization header using the Bearer scheme. \\r\\n\\r\\n \n                      Enter 'Bearer' [space] and then your token in the text input below.\n                      \\r\\n\\r\\nExample: 'Bearer 12345abcdef'",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://login.autharmor.com/connect/token",
            "scopes": {
              "aarmor.api.request_auth": "Request Auth",
              "aarmor.api.generate_invite_code": "Generate Invite Code"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": [
        "aarmor.api.request_auth",
        "aarmor.api.generate_invite_code"
      ]
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 54,
      "2": 234,
      "3": 142,
      "4": 246,
      "5": 188,
      "6": 222,
      "7": 0,
      "8": 89,
      "9": 3,
      "10": 138,
      "11": 210
    }
  }
}
```