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
Successfully authenticated
Bad Request - Invalid parameters
Invalid credentials
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...",
"expireTime": 3600
}
Refresh an expired access token using the refresh token. The Bearer token can be expired.
Refresh token received from login
rt_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Token successfully refreshed
Bad Request - Invalid parameters
Unauthorized - Invalid token
Forbidden - Insufficient permissions
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...",
"expireTime": 3600
}
Check the status of an anonymization job.
Job ID received from POST request
client_uuid-SRV_ANONYMIZATION-abc123def456
Job status
Bad Request - Invalid job ID
Unauthorized - Invalid token
Forbidden - Insufficient permissions
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"
}
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, JPG, PNG, WEBP, BMP, TIFF, 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
Job successfully created
Bad Request - Invalid parameters
Unauthorized - Invalid token
Payment Required
Forbidden - Insufficient permissions
Payload Too Large
POST /innovation-service/anonymization HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 286
{
"input_media": "binary",
"activation_faces_blur": true,
"activation_plates_blur": true,
"output_detections_url": true,
"included_area": {
"top": 0.05,
"bottom": 0.95,
"left": 0.05,
"right": 0.95
},
"blur_type": {
"anonymization_type": "blur_double",
"smooth_padding": null,
"hex_color": null,
"num_pixels": null
}
}
{
"anonymization_job_id": "client_uuid-SRV_ANONYMIZATION-abc123def456"
}
Download result file from BlurIt anonymization service.
File name received in output_media
b83603c4-b9c7-4e86-9fe4-a2eeba2dfa06.jpeg
File content
Bad Request - Invalid filename
Unauthorized - Invalid token
Forbidden - Insufficient permissions
GET /innovation-service/result/{fileName} HTTP/1.1
Host: api.services.wassa.io
Authorization: Bearer JWT
Accept: */*
binary
Last updated