Skip to content

Revocation & Opt-Out

eConsent provides a complete revocation system that allows consumers to withdraw their consent at any time. When a certificate is revoked, all subsequent verification API calls for that certificate return a 403 response indicating the session has opted out.

Revocation management page with bulk actions

When a consumer revokes consent:

  1. The opt_out.revoke flag is set to true on the certificate record.
  2. The change is propagated to both PostgreSQL (primary database) and Elasticsearch (search index).
  3. All future verification API calls for that certificate return 403 "This session has opted out".
  4. An audit log entry is created recording the revocation.
POST https://api.econsent.org/opt-out
FieldTypeRequiredDescription
emailstringNo*Consumer’s email address
mobilestringNo*Consumer’s phone number
certificate_idstringNo*Specific certificate ID to revoke
company_idstringYesYour company ID

*At least one of email, mobile, or certificate_id must be provided.

Terminal window
curl -X POST https://api.econsent.org/opt-out \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"mobile": "+1234567890",
"certificate_id": "EC-session123-base64hash",
"company_id": "comp-abc"
}'
async function revokeConsent(email, mobile, certificateId) {
const response = await fetch('https://api.econsent.org/opt-out', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
email: email,
mobile: mobile,
certificate_id: certificateId,
company_id: process.env.ECONSENT_COMPANY_ID,
}),
});
return response.json();
}
  1. Navigate to Certificates in your dashboard at app.econsent.org.
  2. Find the certificate you want to revoke using search or filters.
  3. Click the certificate to open its detail view.
  4. Click Revoke and confirm the action.
  5. Optionally add a revocation reason or comment for your audit trail.

For revoking multiple certificates at once:

  1. Navigate to Certificates in your dashboard.
  2. Select multiple certificates using the checkboxes.
  3. Click Bulk Revoke from the actions menu.
  4. Confirm the bulk action.

For large-scale revocations, you can upload a CSV file:

  1. Navigate to the revocation section in your dashboard.
  2. Click Upload CSV.
  3. Upload a CSV file with one or more of the following columns: email, mobile, certificate_id.
  4. Review the matched records before confirming.
  5. Confirm to process all revocations.

After a certificate is revoked, all verification endpoints (/api/verify/match, /api/verify/partial-match, /api/verify/certificate-info) return:

{
"status": 403,
"error": "This session has opted out"
}

This applies to both first-party and third-party verification attempts.

Every revocation action is recorded in the audit log with the following information:

FieldDescription
Action typerevocation
TimestampWhen the revocation occurred
UserThe dashboard user who performed the revocation (or “API” for API-initiated revocations)
Certificate IDThe certificate that was revoked
Reason/commentOptional reason provided during revocation
MethodSingle, bulk, CSV, or API

Access the audit log from Settings > Audit Log in your dashboard.