Caller Verification API
The Caller Verification API enables verification of phone call integrity and user registration by using JWT signatures and mapping phone numbers to object IDs.
How It Works
This API offers two primary endpoints:
Call Signature Verification β Verify a JWT signature between caller and callee numbers.
Object ID Lookup β Retrieve a KNS object ID associated with a phone number.
Both endpoints use POST with JSON payloads and require API key authorization.
π Call Signature Verification
The origination phone number in E.164 format.
+14445551234Pattern: ^\+?[1-9]\d{5,14}$The destination phone number in E.164 format.
+14445551234Pattern: ^\+?[1-9]\d{5,14}$The JWT identity header to be verified
Ok
POST /kns/call-signature-verification HTTP/1.1
Host: kns-api.karrier.one
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"origTN": "+14445551234",
"destTN": "+14445551234",
"jwt": "text",
"debug": true
}{
"success": true
}π Object ID Lookup
The user's phone number in E.164 format.
+14445551234Pattern: ^\+?[1-9]\d{5,14}$Ok
The Sui object ID of the KNS NFT
0xa8c5cda072275d83ea87c6ee357edb344fa243aab071d552bdc4a7d69f741d82Pattern: ^0x[0-9a-fA-F]{64}$The Sui object IDs of the Certificate Registries associated with the user's phone number.
["0xa8c5cda072275d83ea87c6ee357edb344fa243aab071d552bdc4a7d69f741d82"]POST /kns/object-id-lookup HTTP/1.1
Host: kns-api.karrier.one
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"phoneNumber": "+14445551234"
}{
"objectId": "0xa8c5cda072275d83ea87c6ee357edb344fa243aab071d552bdc4a7d69f741d82",
"registries": [
"0xa8c5cda072275d83ea87c6ee357edb344fa243aab071d552bdc4a7d69f741d82"
]
}Conclusion
The Caller Verification API makes verifying call authenticity and resolving phone numbers to KNS objects seamless. For questions or help, contact support@karrier.one.
π Reference
Last updated