Accessing Consented Data
Learn how contract owners or authorized applications can securely access or query the specific data that users have explicitly consented to share via a Consent Contract. This page covers the available methods, filtering capabilities, and data retrieval patterns.
Contract Data Access
Contract owners can access data shared by consenters through:
getConsentedDataForContract
: Data from all consenters for a specific contractgetConsentedDataForDid
: Data consented between specific profilesgetConsentedData
: All data consented to any of your contracts
Data queries can filter based on:
Required credential categories
Excluded credential categories
Personal data fields
Date ranges via cursor pagination
All queries return paginated results with:
hasMore
: Whether more records existcursor
: Pagination token for next pagerecords
: The actual data records
Last updated
Was this helpful?