OHN-20 Privacy and Information Governance
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-20/api/openapi.yaml- Servers
https://opeshealthnetwork.com- Authentication
bearerAuth: http bearer (JWT)
Contracts are written in English.
Register of processing activities, legal roles (controller / processor chain), approved purposes, privacy impact assessments, privacy notices, cross-border transfer reviews and privacy incidents, plus jurisdiction privacy configuration, reports with signed one-time exports, and machine contracts for OHN-48 (retention decisions) and gateways (transfer decisions). All routes live under /api/ohn/v1/privacy-governance and are scoped to the token jurisdiction. Every POST requires an Idempotency-Key header (1-255 characters; a replay returns the stored answer; reuse with another body is 409 idempotency_conflict). Version-checked writes take expected_version and answer 409 concurrent_mutation when stale. Default deny. Policy values (code lists, incident response window, transfer corridors) are jurisdiction configuration: when absent the operation fails closed (503 not_configured, setting names what is missing). Roles: privacy_officer and jurisdiction_administrator (stewards), privacy_service (read-only machine role for the service reads), unauthorized_viewer (always refused). Policy configuration and outbox dispatch are jurisdiction_administrator only. Java: tokens are issued by the gateway (ES256, audience ohn-20); the TypeScript synthetic sign-in helper is not part of this contract. Synthetic data only.
Operations
- config (6)
- register (6)
- roles (4)
- purposes (3)
- assessments (4)
- transfers (5)
- notices (4)
- incidents (4)
- reports (4)
- operations (4)
- Other operations (2)
config
GET/api/ohn/v1/privacy-governance/config
Controlled values, policy settings, corridors, retention rules, readiness flags and the list of missing settings.
Operation ID: ohn20_getConfig
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Jurisdiction configuration | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
POST/api/ohn/v1/privacy-governance/config/controlled-values
jurisdiction_administrator. Creates or updates one code of a jurisdiction code list; an update increments version; emits privacy.policy.changed.
Operation ID: ohn20_upsertControlledValue
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ControlledValueCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Controlled value with receipt and events | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
POST/api/ohn/v1/privacy-governance/config/policy-settings
jurisdiction_administrator. expected_version 0 creates the settings; later writes need the current policy_version. incident_response_hours is required but may be null (clock not configured).
Operation ID: ohn20_setPolicySettings
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PolicySettingsCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Policy settings with receipt and events | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
POST/api/ohn/v1/privacy-governance/config/transfer-corridors
jurisdiction_administrator. Approves or suspends a corridor to a destination jurisdiction. The destination must differ from the token jurisdiction; approving needs the destination active in OHN-01.
Operation ID: ohn20_setTransferCorridor
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TransferCorridorCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Corridor with receipt and events | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
POST/api/ohn/v1/privacy-governance/config/retention-rules
jurisdiction_administrator. Sets the retention rule of a record class; legal_basis must be an active legal_basis code.
Operation ID: ohn20_setRetentionRule
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:RetentionRuleCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Retention rule with receipt and events | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/retention-decisions
OHN-48 contract ohn20.retention-decision/1.0.0. Always 200 with permit or deny; every decision is audited and decision_ref is its receipt id. Unknown query parameters are refused (422).
Operation ID: ohn20_getRetentionDecision
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
jurisdiction_id | query | string | no | Required uuid; must equal the token jurisdiction (403 jurisdiction_out_of_scope) |
organization_id | query | string | no | Required uuid |
record_class | query | string | no | Required code |
operation | query | string | no | Required: policy_approval or disposal |
retention_years | query | string | no | Required number 0..200 |
record_set_ref | query | string | no | Optional uuid |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Decision | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
register
GET/api/ohn/v1/privacy-governance/processing-register
OHN-20-API-001. Paged register of processing activities (service reads allowed for privacy_service).
Operation ID: ohn20_listProcessingRegister
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | string | no | Clamped to 1..100, default 25 |
offset | query | string | no | |
status | query | string | no | |
purpose | query | string | no | |
controller | query | string | no | |
retention_policy | query | string | no | |
q | query | string | no | Case-insensitive search in data_categories |
sort | query | string | no | created_at (default), updated_at, status, processing_purpose |
order | query | string | no | asc or desc (default) |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Page with total | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/processing-activities
Form OHN-20-F001. Registers an activity as draft (W001).
Operation ID: ohn20_createProcessingActivity
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ProcessingActivityCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Activity with receipt | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/processing-activities/{id}
Operation ID: ohn20_getProcessingActivity
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Activity with roles, assessments, transfers, history (reduced for privacy_service), next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/processing-activities/{id}/transitions
W001 draft, lawful_basis_reviewed, risk_assessed, authorized, monitored; one step at a time with guards; authorizing needs OHN-07 membership and an OHN-16 permit.
Operation ID: ohn20_transitionProcessingActivity
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:WorkflowTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Transition committed with receipt and events | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/retention-references/{retention}
OHN-48 contract. Activities that rely on a retention schedule.
Operation ID: ohn20_getRetentionReferences
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
retention | path | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | References | application/json: JsonObject |
404 | not_found | — |
GET/api/ohn/v1/privacy-governance/data-flows
OHN-20-P005. Activities as nodes and edges (controller, processor, sub-processors, cross-border destinations).
Operation ID: ohn20_listDataFlows
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | string | no | |
offset | query | string | no | |
status | query | string | no | |
q | query | string | no | |
destination | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Page with total | application/json: JsonObject |
roles
GET/api/ohn/v1/privacy-governance/legal-roles
Operation ID: ohn20_listLegalRoles
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
processing_activity_id | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Assignments (max 500) | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/legal-roles
Operation ID: ohn20_assignLegalRole
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LegalRoleCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Assignment with receipt | application/json: JsonObject |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
POST/api/ohn/v1/privacy-governance/legal-roles/{id}/revoke
Operation ID: ohn20_revokeLegalRole
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:VersionedReasonCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Revoked assignment with receipt | application/json: JsonObject |
404 | not_found | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
GET/api/ohn/v1/privacy-governance/role-matrix
Operation ID: ohn20_getRoleMatrix
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Activities by legal role with gaps (accountable_controller_missing, processor_chain_undocumented) | application/json: JsonObject |
purposes
GET/api/ohn/v1/privacy-governance/purposes
Operation ID: ohn20_listPurposes
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Approved purposes (max 500) | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/purposes
Operation ID: ohn20_approvePurpose
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:DisclosurePurposeCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Purpose with receipt and events | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
POST/api/ohn/v1/privacy-governance/purposes/{id}/retire
Operation ID: ohn20_retirePurpose
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:VersionedReasonCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Retired purpose with receipt and events | application/json: JsonObject |
404 | not_found | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
assessments
GET/api/ohn/v1/privacy-governance/assessments
OHN-20-P002 list.
Operation ID: ohn20_listAssessments
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | string | no | |
offset | query | string | no | |
approval_state | query | string | no | |
risk_rating | query | string | no | |
processing_activity_id | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Page with total | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/assessments
Form OHN-20-F002 (OHN-20-API-002). Approval is never client-asserted; only draft or submitted are accepted.
Operation ID: ohn20_createAssessment
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:AssessmentCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Assessment with receipt | application/json: JsonObject |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
GET/api/ohn/v1/privacy-governance/assessments/{id}
Operation ID: ohn20_getAssessment
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Assessment with activity, previous assessments, history and can_decide | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/assessments/{id}/decision
Submit, approve or reject. The reviewer must differ from the submitter (403 separation_of_duties). Approving needs risk_rating and emits privacy.assessment.approved.
Operation ID: ohn20_decideAssessment
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:AssessmentDecisionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Assessment with receipt and events | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
transfers
GET/api/ohn/v1/privacy-governance/transfers
Operation ID: ohn20_listTransfers
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | string | no | |
offset | query | string | no | |
state | query | string | no | |
outcome | query | string | no | |
destination | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Page with total | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/transfers/review
Form OHN-20-F003 (OHN-20-API-003). Opens W002 at requested; origin_jurisdiction must equal the token jurisdiction.
Operation ID: ohn20_requestTransferReview
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TransferReviewCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Transfer review with receipt | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/transfers/{id}
Operation ID: ohn20_getTransfer
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Transfer with corridor, activity, history, next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/transfers/{id}/transitions
W002 requested, residency_checked, legal_approval, purpose_limited, logged_or_denied. decision deny closes the review as denied. The final authorization needs an OHN-16 permit and (by policy) a distinct authorizer.
Operation ID: ohn20_transitionTransfer
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:WorkflowTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Transfer with receipt and events | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/transfer-decisions
Machine contract for gateways. Always 200 with allow or deny (default deny).
Operation ID: ohn20_getTransferDecision
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
destination_jurisdiction | query | string | no | Required uuid |
processing_activity_id | query | string | no | Required uuid |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Decision | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
notices
GET/api/ohn/v1/privacy-governance/notices
Operation ID: ohn20_listNotices
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Notices (max 500) | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/notices
Form OHN-20-F004. A notice version and language is unique per organization (409 duplicate).
Operation ID: ohn20_createNotice
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PrivacyNoticeCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Notice with receipt | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/notices/{id}
Operation ID: ohn20_getNotice
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Notice with history, next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/notices/{id}/transitions
draft, impact_reviewed, legally_reviewed, effective, retired; effective needs an active publication channel; effective and retired emit privacy.policy.changed.
Operation ID: ohn20_transitionNotice
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:WorkflowTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Notice with receipt and events | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
incidents
GET/api/ohn/v1/privacy-governance/incidents
Operation ID: ohn20_listIncidents
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Incidents (max 500) with clock_status | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/incidents
Opens W003 at incident_reported. The response clock exists only when the jurisdiction configured incident_response_hours.
Operation ID: ohn20_reportIncident
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:IncidentCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Incident with receipt | application/json: JsonObject |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
GET/api/ohn/v1/privacy-governance/incidents/{id}
Operation ID: ohn20_getIncident
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Incident with history, next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/incidents/{id}/transitions
W003 incident_reported, triaged, impact_evaluated, notification_decision, remediated. notification_required must be decided explicitly at notification_decision.
Operation ID: ohn20_transitionIncident
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | uuid; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:WorkflowTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Incident with receipt | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
reports
GET/api/ohn/v1/privacy-governance/reports
Operation ID: ohn20_listReports
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Report definitions | application/json: JsonObject |
GET/api/ohn/v1/privacy-governance/reports/{id}
Operation ID: ohn20_getReport
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | OHN-20-R001, OHN-20-R002 or OHN-20-R003; anything else is 404 |
purpose | query | string | no | |
controller | query | string | no | |
status | query | string | no | |
risk | query | string | no | |
from | query | string | no | |
to | query | string | no | |
country | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Report rows, metrics, metric definitions and provenance | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/reports/{id}/export
Operation ID: ohn20_createExport
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | OHN-20-R001, OHN-20-R002 or OHN-20-R003; anything else is 404 |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ExportCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | HMAC-signed export with one-time retrieval path | application/json: JsonObject |
404 | not_found | — |
503 | not_configured (export signing key missing); nothing generated | — |
GET/api/ohn/v1/privacy-governance/exports/{token}
One time, five minutes, bound to the requesting principal and jurisdiction.
Operation ID: ohn20_downloadExport
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | CSV or PDF body with X-OHN20-Signature header | text/csv: string (binary)application/pdf: string (binary) |
404 | not_found | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
operations
GET/api/ohn/v1/privacy-governance/dashboard
Operation ID: ohn20_getDashboard
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | KPIs, distributions, 30-day trend, exceptions and dependency modes | application/json: JsonObject |
GET/api/ohn/v1/privacy-governance/audit
Operation ID: ohn20_listAudit
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | string | no | |
offset | query | string | no | |
resource_id | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Audit receipts of the jurisdiction (append-only) | application/json: JsonObject |
GET/api/ohn/v1/privacy-governance/outbox
Operation ID: ohn20_listOutbox
Authentication: bearerAuth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Pending and delivered events and the OHN-24 sink mode | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/outbox/dispatch
jurisdiction_administrator. At-least-once relay of pending events to OHN-24; a failed delivery stays pending. The body is optional.
Operation ID: ohn20_dispatchOutbox
Authentication: bearerAuth
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
application/json:DispatchCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | delivered, failed, pending_after and receipt | application/json: JsonObject |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
Other operations
GET/health/ohn-20
Operation ID: ohn20_health
Responses
| Code | Description | Media type |
|---|---|---|
200 | Database reachable; dependency modes and flags | application/json: JsonObject |
503 | Database unavailable | — |
GET/api/ohn/v1/privacy-governance/health
Operation ID: ohn20_externalHealth
Responses
| Code | Description | Media type |
|---|---|---|
200 | Liveness | application/json: JsonObject |
Schemas
JsonObject
object
Code
string
ControlledValueCommand
| Name | Type | Required | Description |
|---|---|---|---|
list_name | "processing_purpose" | "legal_basis" | "publication_channel" | "volume_class" | yes | |
code | Code | yes | |
label_en | string | yes | |
label_fr | string | yes | |
active | boolean | no |
PolicySettingsCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
incident_response_hours | integer | null | no | Must be present; null means the response clock is not configured (checked by the service, since the generated model cannot tell absent from null) |
require_distinct_authorizer | boolean | yes |
TransferCorridorCommand
| Name | Type | Required | Description |
|---|---|---|---|
destination_jurisdiction | string (uuid) | yes | |
legal_authority_ref | string (uuid) | yes | |
safeguard_ref | string (uuid) | yes | |
status | "approved" | "suspended" | no | |
valid_until | string | no |
RetentionRuleCommand
ProcessingActivityCommand
WorkflowTransitionCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
to_state | string | yes | |
evidence_ref | string (uuid) | yes | |
reason | string | yes | |
decision | "advance" | "deny" | no | |
notification_required | boolean | no |
LegalRoleCommand
| Name | Type | Required | Description |
|---|---|---|---|
processing_activity_id | string (uuid) | yes | |
legal_role | "controller" | "joint_controller" | "processor" | "sub_processor" | yes | |
party_org | string (uuid) | yes | |
accountable_person | string (uuid) | yes | |
parent_assignment_id | string (uuid) | no | Required for sub_processor and forbidden otherwise |
VersionedReasonCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
reason | string | yes |
DisclosurePurposeCommand
AssessmentCommand
| Name | Type | Required | Description |
|---|---|---|---|
processing_activity_id | string (uuid) | yes | |
risk_description | string | yes | |
threat_categories | string | yes | |
mitigations | string | yes | |
owner_id | string (uuid) | yes | |
approval_state | "draft" | "submitted" | yes |
AssessmentDecisionCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
decision | "submitted" | "approved" | "rejected" | yes | |
risk_rating | "low" | "medium" | "high" | no | Required to approve |
evidence_ref | string (uuid) | yes | |
reason | string | yes |
TransferReviewCommand
| Name | Type | Required | Description |
|---|---|---|---|
origin_jurisdiction | string (uuid) | yes | |
destination_jurisdiction | string (uuid) | yes | Must differ from origin_jurisdiction |
data_categories | string | yes | |
legal_authority_ref | string (uuid) | yes | |
safeguard_ref | string (uuid) | yes | |
processing_activity_id | string (uuid) | yes | |
volume_class | Code | no |
PrivacyNoticeCommand
| Name | Type | Required | Description |
|---|---|---|---|
notice_version | string | yes | |
language | string | yes | |
effective_at | string | yes | |
review_evidence_ref | string (uuid) | yes | |
publication_channel | Code | yes |
IncidentCommand
| Name | Type | Required | Description |
|---|---|---|---|
processing_activity_id | string (uuid) | no | |
summary | string | yes | |
evidence_ref | string (uuid) | yes |
ExportCommand
| Name | Type | Required | Description |
|---|---|---|---|
format | "csv" | "pdf" | yes | |
filters | object | no |
DispatchCommand
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no |