Skip to main content
Version: v2

Get users' consent

You need end-user consent to process a transaction. If it's not given, you cannot create the transaction. Consent is always transaction-scoped, meaning each new transaction will require a new user consent.

Regions

Code examples here use the us-east region. Use the appropriate region for your deployment.

Structure​

Consent is defined as the following structure:

{
"userId": "unique-value-representing-end-user",
"isProcessingStoringAllowed": true,
"isTrainingAllowed": true
}
  • userId is a required field. This value should uniquely represent the end user within the system. The platform uses it to automatically group that user's transactions into a user profile. Read User IDs before you choose how to generate these values.
  • isProcessingStoringAllowed must be set to true for the consent to be accepted. This value represents that the account owner has collected this end-user's consent for their data to be processed and stored by Microblink.
  • isTrainingAllowed is optional and will not block the transaction if not given. However, when set to true, transaction-level data may be used to further improve the platform. This value represents that the account owner has collected this end-user's consent for their data to used by Microblink for the improvement of the fraud detection capabilities in our own products.

User IDs​

Every transaction must include a userId.

The user ID is how we identify the person that a transaction belongs to. We rely on it to honor your end users' privacy requests, such as requests to access or delete their data. The platform also uses it to group a person's transactions into a user profile.

We expect you to store and manage these IDs in your own system. Each user ID must be:

  • Stable: use the same ID every time the same person goes through a workflow. Don't generate a new ID for each transaction.
  • Unique: never use the same ID for different people.
  • Opaque: don't use personal data, such as an email address, name, or phone number. Use an identifier from your own system instead, for example an internal account ID, or a UUID that you store with the user's account.

The SDKs don't ask the end user for consent. Collect it in your app before the verification starts, for example with a consent screen or checkbox, and send it to your backend.

How you then submit it depends on how the transaction is created.

When you create a transaction​

Your backend sends the consent in the consent object when it creates the transaction:

{
"workflowId": "8cL5xg63gbzLSjvUWYBm9Hnv",
"platform": "Browser",
"consent": {
"userId": "my-user-55d02c8f-28c9-4ae1-aec8-6cdaf78101be",
"isProcessingStoringAllowed": true,
"isTrainingAllowed": true
}
}
curl --url https://api.us-east.platform.microblink.com/agent/api/v2/transaction --user "$CLIENT_ID:$CLIENT_SECRET" --json @request_body.json

When you create a verification link, you don't send a consent object. Instead, you send the userId of the end user who will open the link:

curl --url https://api.us-east.platform.microblink.com/agent/api/v2/verification-link --user "$CLIENT_ID:$CLIENT_SECRET" --json '{"workflowId":"8cL5xg63gbzLSjvUWYBm9Hnv","userId":"my-user-55d02c8f-28c9-4ae1-aec8-6cdaf78101be","expiresOn":"2026-12-01T00:00:00Z"}'

When the end user opens the link, the verification link app asks them for consent before the verification starts.

Privacy notices​

Before collecting consent, provide clear privacy notices that are easily discoverable and use plain language accessible to your target audience.1 Your privacy notice should include:

  • Controller identity
  • Specific processing purpose
  • Data types collected
  • Retention period
  • Third-party sharing details

You can use or adapt the Microblink privacy notices available at:

Obtain explicit opt-in consent through active checkboxes or buttons—never use pre-ticked boxes.2 Enable easy consent withdrawal mechanisms that are as simple as granting consent, ensuring users can change their preferences at any time.

Identity verification transparency​

Clearly explain why identity documents and biometric data are collected. Detail the document scanning, authenticity checks, and liveness detection procedures your end users will experience.

Data retention​

Define clear retention periods based on legal requirements and business needs:3

  • Typically 3-5 years for identity verification data under AML/KYC compliance
  • Immediate deletion of biometric data after verification unless legally required

The platform has customizable data retention with a minimum retention period of 3 months and a default setting of 36 months. Automated deletion permanently removes data when retention periods expire.

Regional compliance​

Store data in appropriate jurisdictions based on customer location. Implement adequate safeguards for cross-border transfers through Standard Contractual Clauses, adequacy decisions, or Data Privacy Framework mechanisms. Adapt retention periods to meet specific regional requirements, including state biometric laws.

Documentation and audit trails​

The platform documents when, how, and for what specific purposes consent was obtained. This includes timestamps, dates, and consent context to create verifiable audit trails for regulatory inspections and end-user rights requests.

Track and respond to data subject rights requests within GDPR's 30-day timeline.

Jurisdiction considerations​

Displaying a privacy notice to the end customer is mandatory in most jurisdictions. Certain jurisdictions also require publication of retention schedules—check if the jurisdiction of your interest has this requirement. Additionally, some regulations require written consent for specific data types (e.g., CPRA requires written consent for biometric data processing).

Footnotes​

  1. (EU/UK) GDPR art. 12-14; (Canada) PIPEDA Principles 2-3; (Brazil) LGPD art. 6-7, 9; (China) PIPL art. 17-21; (California) CPRA §1798.100(b), §1798.110, §1798.121; (Colorado) CPA §6-1-1307, §6-1-1308; (Virginia) CDPA §59.1-574, §59.1-575 ↩

  2. (EU/UK) GDPR art. 4, 6, 7; (Canada) PIPEDA Principle 3; (Brazil) LGPD art. 7-8; (China) PIPL art. 13-17; (California) CPRA §1798.120; (Colorado) CPA §6-1-1306; (Virginia) CDPA §59.1-574, §59.1-575 ↩

  3. (Illinois) BIPA art. 15(a) ↩