Skip to Content

PasskeyRegisterFinish

POST
/auth/v1/users/current/passkeys/register/finish

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Request Body

required
application/json
{
  "$ref": "#/components/schemas/auth.v1.PasskeyRegisterFinishRequest",
  "$ref-value": {
    "type": "object",
    "properties": {
      "user_id": {
        "type": "string",
        "title": "user_id"
      },
      "challenge_id": {
        "type": "string",
        "title": "challenge_id"
      },
      "name": {
        "type": "string",
        "examples": [
          "MacBook Touch ID"
        ],
        "title": "name",
        "description": "At most 64 UTF-8 bytes. When renaming, whitespace is trimmed before validation and the result must be nonempty."
      },
      "credential": {
        "type": "string",
        "title": "credential",
        "format": "byte"
      }
    },
    "title": "PasskeyRegisterFinishRequest",
    "additionalProperties": false
  }
}

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.PasskeyRegisterFinishResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "passkey_id": {
        "type": "string",
        "title": "passkey_id"
      },
      "name": {
        "type": "string",
        "examples": [
          "MacBook Touch ID"
        ],
        "title": "name",
        "description": "At most 64 UTF-8 bytes."
      }
    },
    "title": "PasskeyRegisterFinishResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/auth/v1/users/current/passkeys/register/finish'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.PasskeyRegisterFinishResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "passkey_id": {
        "type": "string",
        "title": "passkey_id"
      },
      "name": {
        "type": "string",
        "examples": [
          "MacBook Touch ID"
        ],
        "title": "name",
        "description": "At most 64 UTF-8 bytes."
      }
    },
    "title": "PasskeyRegisterFinishResponse",
    "additionalProperties": false
  }
}