Verification API
Credential verification endpoints
/
Server-Side Verification
While the SDK handles client-side verification automatically, these endpoints are available for server-side verification when needed.
Verify Credential
POST
/api/verify-credential
Request
JSON
{
"credential": {
"id": "cred_...",
"type": ["VerifiableCredential", "..."],
"issuer": "did:lemma:...",
"proof": {...}
}
}
Response
JSON
{
"valid": true,
"claims": { "...": "verified claims" },
"reason": null,
"issuer_trusted": true,
"signature_valid": true
}
Revocation Status
GET
/api/wallet/revocation-status?credential_ids=cred_1&credential_ids=cred_2
Returns revocation status map for one or more credential IDs.