Docs
reference
Start User Registration

Start User Registration

Re-usable components built using Radix UI and Tailwind CSS.

Start User Registration

This endpoint allows you to create a new User Sonr Identity by using the Service Record on chain as the Relaying party. Refer to the list at the top of this page to see which properties are used to create the Relaying party object.

Required attributes

  • Name
    alias
    Type
    string
    Description

    The doman alias for the new user account

Request

GET
/service/:origin/register/start
curl https://core.build/service/localhost/register/start \
  -d alias=test.snr
  {
    "alias": "admin",
    "attestion_options": {
      "publicKey": {
        "rp": {
          "name": "Localhost",
          "id": "localhost"
        },
        "user": {
          "name": "Localhost",
          "displayName": "admin",
          "id": "YWRtaW4="
        },
        "challenge": "Ykc5allXeG9iM04w",
        "pubKeyCredParams": [{
          "type": "public-key",
          "alg": -7
        }],
        "timeout": 60000,
        "authenticatorSelection": {
          "authenticatorAttachment": "cross-platform",
          "residentKey": "preferred",
          "userVerification": "required"
        },
        "attestation": "direct"
      }
    },
    "origin": "localhost"
  }