List all data policies
GET/config/policies
This endpoint reads all data policies defined in the consent building block.
Request
Query Parameters
An object with ID revisionId
Number of records to skip for pagination.
Default value: 10
Maximum number of records to return per page.
Responses
- 200
- 400
- 401
- 500
A list of Policy objects readable for the current session's credentials.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
pagination object
Current page number
Total number of items available
Total number of pages based on limit
Number of items per page
Indicates if there's a previous page
Indicates if there's a next page
policies object[]
Name of the policy
Version of the policy (it can follow the semver format)
Permanent URL at which this very version of the Policy can be read, should not be allowed to change over time
Jurisdiction
Industry sector
Data retention period in days
Geographic restriction
Storage location
Third party data sharing
{
"pagination": {
"currentPage": 1,
"totalItems": 25,
"totalPages": 3,
"limit": 10,
"hasPrevious": false,
"hasNext": true
},
"policies": [
{
"id": "65471222e8c7c3bb3c2c7701",
"name": "Default data policy",
"version": "1.0.0",
"url": "https://example.com/privacy-policy",
"jurisdiction": "EU",
"industrySector": "Healthcare",
"dataRetentionPeriodDays": 365,
"geographicRestriction": "EU",
"storageLocation": "EU",
"thirdPartyDataSharing": true
}
]
}
bad input parameter
Response Headers
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Internal server error
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}