Karrier Number System API

The Karrier Number System API provides a secure way to register users, create and manage approvals, and verify identities and transactions using zk addresses, approval references, and signatures.

How It Works

Each endpoint supports either POST or GET methods with JSON bodies or query parameters. The API handles identity registration, approval workflows (like SIM swaps), and cryptographic verification.

🧾 Register User Login

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
post
/kns/register-user-login

✅ Create Approval – Phone

post
Authorizations
x-api-keystringRequired
Body
titlestring · string · min: 1 · max: 255Required

The title of the approval request.

Example: SIM Replacement Approval
messagestring · stringRequired

A description of what the approval request is for.

Example: Would you like to deactivate your previous SIM card and activate a new SIM card?
successRedirectUrlstring · string · min: 1 · max: 255Required

The URL to redirect to if the user approves the request.

Example: https://example.com/approvedPattern: ^https?:\/\/.*$
cancelRedirectUrlstring · string · min: 1 · max: 255Required

The URL to redirect to if the user cancels the approval request.

Example: https://example.com/cancelPattern: ^https?:\/\/.*$
referenceNumberstring · string · min: 1 · max: 255Required

The reference number for the approval request.

Example: SIM-1234
methodstring · enumRequired

The method to use for the approval request. This can be either "sign" or "event".

Example: signPossible values:
phoneNumberstring · E.164Required

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

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

Ok

application/json
post
/kns/approval-phone

🪪 Create Approval – Object ID

post
Authorizations
x-api-keystringRequired
Body
titlestring · string · min: 1 · max: 255Required

The title of the approval request.

Example: SIM Replacement Approval
messagestring · stringRequired

A description of what the approval request is for.

Example: Would you like to deactivate your previous SIM card and activate a new SIM card?
successRedirectUrlstring · string · min: 1 · max: 255Required

The URL to redirect to if the user approves the request.

Example: https://example.com/approvedPattern: ^https?:\/\/.*$
cancelRedirectUrlstring · string · min: 1 · max: 255Required

The URL to redirect to if the user cancels the approval request.

Example: https://example.com/cancelPattern: ^https?:\/\/.*$
referenceNumberstring · string · min: 1 · max: 255Required

The reference number for the approval request.

Example: SIM-1234
methodstring · enumRequired

The method to use for the approval request. This can be either "sign" or "event".

Example: signPossible values:
objectIdstring · string · min: 66 · max: 66Required

The Sui object ID of the KNS NFT.

Example: 0xa8c5cda072275d83ea87c6ee357edb344fa243aab071d552bdc4a7d69f741d82Pattern: ^0x[0-9a-fA-F]{64}$
Responses
chevron-right
200

Ok

application/json
post
/kns/approval-object-id

🔍 Get Transaction Details

get
Query parameters
refstringRequired
Responses
chevron-right
200

Ok

application/json
get
/kns/transaction_details

✍️ Verify Signature

post
Body
signaturestringRequired
approvalNumberstringRequired
Responses
chevron-right
200

Ok

application/json
post
/kns/verify_signature

🔐 Verify Transaction Digest

post
Body
digeststringRequired
approvalNumberstringRequired
Responses
chevron-right
200

Ok

application/json
post
/kns/verify_transaction

Conclusion

The Karrier Number System API enables secure and seamless identity verification, approvals, and transaction validation. For questions or support, please reach out to [email protected].

🔗 Reference

Karrier Number System OpenAPI Specification

Last updated