---
title: "Search Personal Data Processing Logging (test-support)"
method: POST
path: "/test-support/search"
tags: ["PersonalDataProcessingLog", "Test-Support"]
---

# Search Personal Data Processing Logging (test-support)

`POST /test-support/search`

Test-support endpoint used by automated tests to verify PDPO logs have been stored in the database.

## Request body

- SearchPdpoLogRequest
  - `created_by` ParticipantIdentifier
    - `id` string, required — Unique identifier for the user/entity.
    - `type` string, required — Type of identifier. Examples - OPAL_USER_ID, EXTERNAL_SERVICE, DEFENDANT, MINOR_CREDITOR.
  - `business_identifier` string
  - `individual_identifier` string — Unique identifier for the individual user/entity.
  - `individual_type` string — Type of identifier. Examples - OPAL_USER_ID, EXTERNAL_SERVICE, DEFENDANT, MINOR_CREDITOR.
  - `category` 'Collection' | 'Alteration' | 'Consultation' | 'Disclosure' | 'Combination' | 'Erasure'
  - `created_after` string, date

## Response `200`

Array of PersonalDataProcessingLog objects matching the search.

- AddPdpoLogResponse[]
  - `pdpo_log_id` integer, required — The id of the PDPL request.
  - `created_by` ParticipantIdentifier, required
    - `id` string, required — Unique identifier for the user/entity.
    - `type` string, required — Type of identifier. Examples - OPAL_USER_ID, EXTERNAL_SERVICE, DEFENDANT, MINOR_CREDITOR.
  - `created_at` string, date-time, required — Time of the PDPO request.
  - `business_identifier_id` integer, required — Internal business description id.
  - `business_identifier` string, required — Human-readable business identifier/description. Reuse existing description id if present; otherwise create new one.
  - `ip_address` string, required — Requester's IP address (IPv4 or IPv6).
  - `category` 'Collection' | 'Alteration' | 'Consultation' | 'Disclosure' | 'Combination' | 'Erasure', required — Category of personal data processing.
  - `recipient` ParticipantIdentifier
    - `id` string, required — Unique identifier for the user/entity.
    - `type` string, required — Type of identifier. Examples - OPAL_USER_ID, EXTERNAL_SERVICE, DEFENDANT, MINOR_CREDITOR.
  - `individuals` ParticipantIdentifier[], required — People the PDPO relates to.
    - `id` string, required — Unique identifier for the user/entity.
    - `type` string, required — Type of identifier. Examples - OPAL_USER_ID, EXTERNAL_SERVICE, DEFENDANT, MINOR_CREDITOR.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error
- `503` — Service unavailable

---

[API](https://skmtc.net/hm-courts-and-tribunals-service/apis/opal-logging-service-personal-data-processing-apis.md) · [All operations](https://skmtc.net/hm-courts-and-tribunals-service/apis/opal-logging-service-personal-data-processing-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hm-courts-and-tribunals-service/opal-logging-service-personal-data-processing-apis/versions/3cd0ae7a4ad7/schema)
