API CALLS
Authenticate to the API using your client credentials. Returns a token needed for all other routes.
Client Id available in the Developer Account section
client_123456789
Secret ID available in the Developer Account section
secret_987654321
POST /login HTTP/1.1
Host: api.services.wassa.io
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"clientId": "client_123456789",
"secretId": "secret_987654321"
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600
}
Refresh an expired access token using the refresh token. The Bearer token can be expired.
Refresh token received from login
rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
POST /token HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"refreshToken": "rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600
}
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.
Image or video file to process. Accepted formats are JPEG, PNG, WEBP, MP4, AVI, MOV, MKV, ZIP.
Enable face detection and blurring
true
Enable license plate detection and blurring
true
Return URLs to download detection coordinates in JSON format
true
POST /innovation-service/anonymization HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer JWT
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"
}
Check the status of an anonymization job.
Job ID received from POST request
client_uuid-SRV_ANONYMIZATION-abc123def456
GET /innovation-service/anonymization HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer JWT
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"
}
Download result file from BlurIt anonymization service.
File name received in output_media
b83603c4-b9c7-4e86-9fe4-a2eeba2dfa06.jpeg
GET /innovation-service/result/{fileName} HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer JWT
Accept: */*
binary
Last updated