Get the contact cleanup report
GET
/api/privacy/cleanup
const url = 'http://127.0.0.1:8765/api/privacy/cleanup';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:8765/api/privacy/cleanupThe one-time contact cleanup’s report. Contact details stored before 0.1.10.7 (stored resumes; the name and contact items of the PDF settings) are removed once, at gigai scout run and when the server starts, through the normal write path. This reads the stored report: what kinds and how many were removed, where, never a value, and that earlier copies remain in the workpad’s local history. status is not_run before the first cleanup.
Responses
Section titled “Responses”Success.
Media typeapplication/json
object
schema_version
required
key
additional properties
any
Example
{ "removed_any": false, "schema_version": "scout-contact-cleanup-report:1", "shown": true, "status": "already_done"}Forbidden_origin
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{ "error": { "code": "forbidden_origin", "message": "..." }}Target_unavailable
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{ "error": { "code": "target_unavailable", "message": "..." }}