Overview
Get detailed information about a ZKScore identity, including their ZKS ID, wallet address, activation status, and metadata.
Parameters
ZKS ID (e.g., alice.zks) or wallet address (e.g., 0x742d35Cc...)
ZKS ID Requirements : If using a ZKS ID, it must be activated (soulbound). The API will return the primary wallet address and aggregated data across all linked wallets.
Response
Indicates if the request was successful
The ZKS ID (without .zks suffix), or null if not set
The primary wallet address
The NFT token ID of the identity
The ZKS ID name (without .zks suffix)
The wallet address that owns this identity
Whether the identity is activated (soulbound)
ISO 8601 timestamp of when the identity was minted
ISO 8601 timestamp of when the identity was activated
Examples
cURL (ZKS ID)
cURL (Wallet Address)
JavaScript
Python
curl https://api.onzks.com/v1/identity/alice.zks \
-H "Authorization: Bearer YOUR_API_KEY"
Response Example
{
"success" : true ,
"zksId" : "alice" ,
"address" : "0x742d35cc6635c0532925a3b844d1ff4e1321" ,
"identity" : {
"tokenId" : 12345 ,
"name" : "alice" ,
"ownerAddress" : "0x742d35cc6635c0532925a3b844d1ff4e1321" ,
"isActivated" : true ,
"createdAt" : "2024-01-15T10:30:00Z" ,
"activatedAt" : "2024-01-15T11:00:00Z"
}
}
Error Responses
404 Not Found
400 Bad Request
{
"success" : false ,
"error" : "Identity 'alice.zks' not found or not activated"
}
Use Cases
1. Profile Lookup
Use ZKS ID for a cleaner user experience:
// User enters their ZKS ID
const identity = await getIdentity ( 'alice.zks' );
displayProfile ( identity );
2. Identity Verification
Check if an identity exists and is activated:
const identity = await getIdentity ( 'alice.zks' );
if ( identity . identity . isActivated ) {
console . log ( 'Identity is verified and soulbound' );
}
3. Address Resolution
Resolve a ZKS ID to a wallet address:
const identity = await getIdentity ( 'alice.zks' );
const walletAddress = identity . address ;