Link User to Consent Set
Consent
Link User to Consent Set
Associate a userId with an existing consent set created during onboarding
PATCH
Link User to Consent Set
Overview
Links a permanentuserId to an existing consent set that was created during onboarding. This endpoint completes the consent onboarding process by associating consent records with a user account.
Call this endpoint after user account creation is complete (e.g., after email verification, KYC completion, or registration finalization).
When to Use
1
After User Account Creation
Once you have a permanent
userId from your system2
After Email Verification
When user verifies their email and account is activated
3
After KYC Completion
When identity verification finalizes
4
Registration Complete
When the full registration workflow finishes
Endpoint
Headers
Path Parameters
Request Body
Example Request
Response
200 OK
400 Bad Request
404 Not Found
409 Conflict
Code Examples
TypeScript
Python
cURL
Integration Workflow
Best Practices
Store ConsentSetId Temporarily
Store ConsentSetId Temporarily
Store the
consentSetId in your session or database until user registration completes:Handle Idempotency
Handle Idempotency
Check if linking has already occurred before attempting:
Clean Up After Linking
Clean Up After Linking
Remove temporary data after successful linking:
Important Notes
Audit Trail: The linking action is automatically recorded in the user’s consent audit trail with timestamp and metadata.
Related Endpoints
Create Onboarding Consent
Create the initial consent set
Get User Consent Status
Check user’s consent status after linking
Get Consent Set by ID
Retrieve consent set details
Implementation Guide
Full integration guide