Location Privacy Config
API Contract
REST
/api/v1/privacy-config
5 endpoints
GET
/api/v1/privacy-config/api/v1/privacy-config
List all privacy configuration profiles
Public
Response Example
{
"data": [
{
"config_id": "priv_org_abc123",
"organization_id": "org_abc123",
"privacy_policy_url": "https://example.org/privacy/location-v2",
"consent_retention_days": 180,
"data_sensitivity_level": "high",
"audit_enabled": true,
"audit_retention_days": 365
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1
}
}
GET
/api/v1/privacy-config/api/v1/privacy-config/:config_id
Get a specific privacy configuration profile
Public
Response Example
{
"config_id": "priv_org_abc123",
"organization_id": "org_abc123",
"privacy_policy_url": "https://example.org/privacy/location-v2",
"consent_retention_days": 180,
"data_sensitivity_level": "high",
"audit_enabled": true,
"audit_retention_days": 365,
"audit_log_fields": [
"mentor_id",
"action",
"timestamp",
"ip_hash"
],
"created_at": "2026-01-01T00:00:00Z"
}
POST
/api/v1/privacy-config/api/v1/privacy-config
Create a new privacy configuration profile for an organization
Public
Request Example
{
"organization_id": "org_xyz789",
"privacy_policy_url": "https://neworg.no/privacy/location",
"consent_retention_days": 90,
"data_sensitivity_level": "medium",
"audit_enabled": true,
"audit_retention_days": 180
}
Response Example
{
"config_id": "priv_org_xyz789",
"organization_id": "org_xyz789",
"privacy_policy_url": "https://neworg.no/privacy/location",
"consent_retention_days": 90,
"data_sensitivity_level": "medium",
"audit_enabled": true,
"audit_retention_days": 180,
"created_at": "2026-03-26T10:10:00Z"
}
PUT
/api/v1/privacy-config/api/v1/privacy-config/:config_id
Update a privacy configuration profile
Public
Request Example
{
"privacy_policy_url": "https://example.org/privacy/location-v3",
"consent_retention_days": 365,
"data_sensitivity_level": "high"
}
Response Example
{
"config_id": "priv_org_abc123",
"privacy_policy_url": "https://example.org/privacy/location-v3",
"consent_retention_days": 365,
"data_sensitivity_level": "high",
"updated_at": "2026-03-26T10:15:00Z"
}
DELETE
/api/v1/privacy-config/api/v1/privacy-config/:config_id
Delete a privacy configuration profile
Public
Response Example
{
"config_id": "priv_org_xyz789",
"deleted": true,
"deleted_at": "2026-03-26T10:20:00Z"
}