Revoke credential

Why Credentials Can’t Be Deleted

Due to the nature of credentials, they cannot be deleted. To invalidate a specific credential for a user, you must revoke it.

Once revoked:

  • The credential will no longer appear in the List Credentials endpoint.

  • It will be excluded from all fit score calculations.

Credential Revocation

POST /api.moojo.id/revoke-credential

Headers

Name
Value

Content-Type

application/json

x-api-key

Your API KEY as provided by Moojo

Body

Name
Type
Description

credentialId

string

A unique ID representing the credential you want to revoke. You can get the ID by listing the user's credentials.

Request example

{
    "credentialID": "0x5dad0dcec629aebab6d0d458bfc4c044714a1d.....",
}

Response example

{
    "status": "success",
    "traceId": "b1adc9d8-1bb2-43c2-98d7-2ce6573f8b63",
    "data": {}
}

Last updated

Was this helpful?