Skip to content

AVF Infer

Submit a video file for asynchronous Anti-Video Forgery (AVF) analysis. This endpoint returns immediately with a request ID that can be used to check the processing status.

Endpoint

POST /api-gateway/avf/infer

Authentication

Requires a valid JWT token in the Authorization header.

Authorization: Bearer <your-jwt-token>

Optional Headers

HeaderDescription
X-Device-InfoDevice information in JSON format. More info
X-Geo-LocationClient geolocation data instead of IP-based lookup. More info
X-Session-IDSession ID to link transactions. More info

Request

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
fileFileYesVideo file to analyse (max 100MB)

Example Request

Terminal window
curl -X POST 'https://api.biometrysolutions.com/api-gateway/avf/infer' \
-H 'Authorization: Bearer <your-jwt-token>' \
-H 'accept: application/json' \
-F '[email protected];type=video/mp4'

Response

Status: 202 Accepted

The request is accepted for processing. Use the returned request_id to check the status.

{
"message": "Inference request accepted",
"data": {
"success": true,
"message": "Accepted for processing",
"prediction": null,
"confidence": null,
"score": null,
"metadata": {
"request_id": "246fcaf1-0c88-4b21-a96c-05cabefcef55",
"source_filename": "video.mp4",
"received_at": 1763007610
}
}
}

Response Fields

FieldTypeDescription
messagestringStatus message
data.successbooleanWhether the request was accepted
data.messagestringDetailed status message
data.metadata.request_idstringUnique identifier for tracking the request
data.metadata.source_filenamestringOriginal filename of uploaded video
data.metadata.received_atnumberUnix timestamp when request was received

Error Responses

StatusDescription
400 Bad RequestInvalid file format or missing file
401 UnauthorizedMissing or invalid JWT token
413 Payload Too LargeFile exceeds 100MB limit
500 Internal Server ErrorServer processing error

Next Steps

After receiving a successful response, use the AVF Status endpoint to check the processing status and retrieve results.