Live on Base with Ewance

See the certificates
API ReferenceReferenceCredentials

GDPR erasure

Honor a recipient's GDPR right-to-be-forgotten request. Redacts recipient PII from the off-chain store. The on-chain anchor and cryptographic proof are not affected — the credential remains verifiable.

POST
/credentials/{id}/erase

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token in the Authorization header. Key prefix determines environment: lrn_test_ → Base Sepolia, lrn_live_ → Base mainnet.

In: header

Path Parameters

id*string
Match^crd_[A-Z0-9]{26}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.learncoin.me/v1/credentials/crd_01HXYZABCDEF1234567890ABCD/erase" \  -H "Content-Type: application/json" \  -d '{    "requester": "recipient",    "verified_at": "2019-08-24T14:15:22Z"  }'
{
  "id": "string",
  "erased": true,
  "erased_at": "2019-08-24T14:15:22Z",
  "verification_status_after_erasure": "verifiable"
}
{
  "error": {
    "code": "credential_not_found",
    "message": "string",
    "request_id": "req_01HXYZABCDEF"
  }
}
{
  "error": {
    "code": "credential_not_found",
    "message": "string",
    "request_id": "req_01HXYZABCDEF"
  }
}
{
  "error": {
    "code": "credential_not_found",
    "message": "string",
    "request_id": "req_01HXYZABCDEF"
  }
}