Identity Verification
Revoke Identity
Revoke an on-chain identity verification
POST
/
customers
/
api
/
identity
/
revoke
curl -X POST "https://api.trusset.org/customers/api/identity/revoke" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{ "walletAddress": "0xAbC123dEf456789012345678901234567890AbCd" }'
const response = await fetch(
'https://api.trusset.org/customers/api/identity/revoke',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
walletAddress: '0xAbC123dEf456789012345678901234567890AbCd'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"walletAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"status": "revoked",
"txHash": "0xabc123def456789012345678901234567890abc123def456789012345678901234",
"gasUsed": "42150"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z"
}
}
Revokes a previously verified identity on-chain and updates the off-chain customer record to
revoked status. Use this when a customer fails ongoing compliance checks or when their verification must be invalidated.
Request Body
Ethereum wallet address to revoke.
Response Fields
Request status
curl -X POST "https://api.trusset.org/customers/api/identity/revoke" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{ "walletAddress": "0xAbC123dEf456789012345678901234567890AbCd" }'
const response = await fetch(
'https://api.trusset.org/customers/api/identity/revoke',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
walletAddress: '0xAbC123dEf456789012345678901234567890AbCd'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"walletAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"status": "revoked",
"txHash": "0xabc123def456789012345678901234567890abc123def456789012345678901234",
"gasUsed": "42150"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z"
}
}
⌘I
curl -X POST "https://api.trusset.org/customers/api/identity/revoke" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{ "walletAddress": "0xAbC123dEf456789012345678901234567890AbCd" }'
const response = await fetch(
'https://api.trusset.org/customers/api/identity/revoke',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
walletAddress: '0xAbC123dEf456789012345678901234567890AbCd'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"walletAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"status": "revoked",
"txHash": "0xabc123def456789012345678901234567890abc123def456789012345678901234",
"gasUsed": "42150"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z"
}
}
