For the complete documentation index, see llms.txt. This page is also available as Markdown.

Anonymization

Get anonymization job status

get

Check the status of an anonymization job.

Authorizations
AuthorizationstringRequired

JWT token needed for all other routes. The token acquired with the login route.

Query parameters
anonymization_job_idstringRequired

Job ID received from POST request

Example: client_uuid-SRV_ANONYMIZATION-abc123def456
Responses
200

Job status

application/json
statusstring · enumOptional

Current status of the job

Example: SucceededPossible values:
output_mediastringOptional

URL to download the processed media (when status is completed)

Example: https://api.services.wassa.io/innovation-service/result/b83603c4-b9c7-4e86-9fe4-a2eeba2dfa06.jpeg
output_jsonstringOptional

URL to download the JSON with detection coordinates (when status is completed)

Example: https://api.services.wassa.io/innovation-service/result/b83603c4-b9c7-4e86-9fe4-a2eeba2dfa06.json
errorstringOptional

Error message (when status is failed)

Example: Error message
get/innovation-service/anonymization
GET /innovation-service/anonymization?anonymization_job_id=client_uuid-SRV_ANONYMIZATION-abc123def456 HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "status": "Succeeded",
  "output_media": "https://api.services.wassa.io/innovation-service/result/b83603c4-b9c7-4e86-9fe4-a2eeba2dfa06.jpeg",
  "output_json": "https://api.services.wassa.io/innovation-service/result/b83603c4-b9c7-4e86-9fe4-a2eeba2dfa06.json",
  "error": "Error message"
}

Start an anonymization job

post

This route will create a job for anonymizing faces and/or license plates in images or videos. The process is asynchronous and will return a job ID that can be used to check the status.

Note: For a basic request, only the input_media field is required. All other form fields should be disabled in the test interface.

Authorizations
AuthorizationstringRequired

JWT token needed for all other routes. The token acquired with the login route.

Body
input_mediastring · binaryRequired

Image or video file to process. Accepted formats are JPEG, PNG, WEBP, MP4, AVI, MOV, MKV, ZIP.

activation_faces_blurbooleanOptional

Enable face detection and blurring

Example: true
activation_plates_blurbooleanOptional

Enable license plate detection and blurring

Example: true
output_detections_urlbooleanOptional

Return URLs to download detection coordinates in JSON format

Example: true
Responses
200

Job successfully created

application/json
anonymization_job_idstringOptionalExample: client_uuid-SRV_ANONYMIZATION-abc123def456
post/innovation-service/anonymization
POST /innovation-service/anonymization HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 267

{
  "input_media": "binary",
  "activation_faces_blur": true,
  "activation_plates_blur": true,
  "output_detections_url": true,
  "included_area": {
    "top": 1,
    "bottom": 1,
    "left": 1,
    "right": 1
  },
  "blur_type": {
    "anonymization_type": "blur",
    "smooth_padding": null,
    "hex_color": null,
    "num_pixels": null
  }
}
{
  "anonymization_job_id": "client_uuid-SRV_ANONYMIZATION-abc123def456"
}

Last updated