Get User Consent Status
Consent
Get User Consent Status
Retrieve user consent status with optional full details
GET
Get User Consent Status
Overview
Retrieves consent status for a user. By default returns a short summary (status only). Use?full=true query parameter to get all consent sets with detailed consent records.
Use short mode (default) for fast status checks and access control. Use full mode for detailed consent review and compliance reporting.
Endpoint
Headers
| Header | Required | Description |
|---|---|---|
x-client-key | ✅ | Your public API key |
x-us-env | ❌ | Set to true for US region routing |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | ✅ | User identifier to retrieve consent status for |
Query Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
full | string | ❌ | Set to "true" for complete details with all consent sets | false |
Response Modes
Short Mode (Default)
Fast response with aggregated status only:Full Mode (?full=true)
Complete consent details including all records:Consent Status Values
| Status | Meaning | Action |
|---|---|---|
complete | All required consents granted, no denials/revocations | ✅ Allow access |
incomplete | Missing required consents OR has denials/revocations | ⚠️ Restrict access, prompt re-consent |
none | No consent sets found for this user | 🚫 Initiate consent collection |
Status Logic:
complete: All required consents (based on policy type) havegrantedstatusincomplete: Any required consent is missing,denied, orrevokednone: User has no consent sets (likely hasn’t completed onboarding)
Error Responses
404 Not Found
498 Invalid Client Key
499 Missing Client Key
Code Examples
TypeScript - Short Mode (Access Control)
TypeScript - Full Mode (Consent Dashboard)
Python
cURL - Short Mode
cURL - Full Mode
Use Cases
Access Control & Feature Gating
Access Control & Feature Gating
Use short mode for fast status checks before allowing access:
User Privacy Dashboard
User Privacy Dashboard
Use full mode to display user’s consent preferences:
Compliance Reporting
Compliance Reporting
Use full mode for compliance audits and reporting:
Conditional Feature Access
Conditional Feature Access
Check specific consent types:
Performance Considerations
Short mode is optimized for high-frequency status checks (access control, API middleware). Full mode includes more data and should be used only when detailed consent information is needed.
Related Endpoints
Get Consent Audit Trail
Retrieve complete consent change history
Revoke Consent
Allow users to withdraw consents
Get Consent Set by ID
Retrieve specific consent set details
Implementation Guide
Full integration guide