Number Pre-Registration

User pre-registration enables providers or telecom operators to pre-determine the crypto wallet address that will be associated with a user. This process is useful for sending assets (e.g., Welcome NFTs, gifts) or tracking user engagement.

Note: This does not grant the operator access to the wallet or its private keys.

How It Works

  • Purpose: Pre-register a user with a specific crypto wallet address for asset distribution and engagement tracking.

  • Security: The operator cannot access the user's wallet or its private keys.

API Endpoint: User Pre-Registration

Request Details

  • Endpoint URL: https://kns-api.karrier.dev/kns/register-user-login

  • HTTP Method: POST

  • Headers:

    • x-api-key: testkey

    • Content-Type: application/json

  • Payload Example:

    jsonCopy{
      "phoneNumber": "+17025551234",
      "email": "[email protected]"
    }

cURL Example

Sample Response

A successful request returns a JSON response similar to the example below:

  • success: Indicates the status of the request.

  • message: Provides a brief summary of the operation.

  • userId: A unique identifier for the pre-registered user.

  • zkAddress: The crypto wallet address generated for the user.

  • identifiers: Lists the user's identifiers, such as email and phone number.

Request & Response Details

This section outlines the key parameters, example requests, and sample responses for the API endpoint.

post
Body
emailstringOptional

The user's email address.

phoneNumberstring · E.164Optional

The user's phone number in E.164 format.

Example: +14445551234Pattern: ^\+?[1-9]\d{5,14}$
Responses
chevron-right
200

Ok

application/json
successbooleanRequired
messagestringRequired
userIdstringOptional
zkAddressstringOptional
post
/kns/register-user-login

Conclusion

This API provides a streamlined way to pre-register users by associating a predetermined crypto wallet address with their account. If you have any questions or need further assistance, please feel free to contact us at [email protected].

Last updated