Ingest
This endpoint allows you to submit image data and associated metadata to our platform for processing. It accepts image URLs along with capture information, location data, and detection-related data
Endpoint
Method:
POST
Request Headers
accept: application/jsonContent-Type: application/jsonx-api-key: your-api-key-hereAuthorization: Bearer your-access-token-here
Request Body Parameters
source
(string, required): Sensor identifier we use for our partnersimage_url
(string, URL, required): Image's URL to processtime_captured
(string, ISO 8601, required): Timestamp when image was captureddetection_bounding_box
(Object, required): Coordinates of detection boxxmin
(float, required): Left coordinateymin
(float, required): Top coordinatexmax
(float, required): Right coordinateymax
(float, required): Bottom coordinate
source_location_info
(Object, required): Location informationlatitude
(float, required): Location latitudelongitude
(float, required): Location longitudecity
(string, required): City namestate
(string, required): State nameroute
(string, required): Route identifiertraffic_direction (string, required): Traffic direction
detection_metadata
(Object, required): Detection metadataalpr_confidence
(float, required): Confidence score of ALPR detectionalpr_state
(string, required): License plate's stateplate_number
(string, optional): Detected plate number
Error Response
200 OK: A json object containing the
Image receivedmessage.401 Unauthorized: If the authentication credentials (api-key or access-token) are missing or incorrect.
403 Forbidden: If the
access-tokenhas expired or if the user don't have the required roles.422 Unprocessable Entity: If there are missing required fields, invalid field formats or empty values in required fields
500 Internal Server Errors: If here are errors downloading the image, uploading the image to our DB, deleting the image from our servers or posting to our internal servers
Request Example
curl -X 'POST' \
'https://api.genlogs.io/image' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-api-key: your-api-key-here' \
-H 'Authorization: Bearer your-access-token-here' \
-d '{
"source": "sensor_identifier",
"image_url": "https://example.com/image.jpg",
"time_captured": "2025-02-11T22:50:25.459Z",
"detection_bounding_box": {
"xmin": 200,
"ymin": 200,
"xmax": 400,
"ymax": 400
},
"source_location_info": {
"latitude": 34.2,
"longitude": -118.5,
"city": "Los Angeles",
"state": "CA",
"route": "US-101",
"traffic_direction": "north"
},
"detection_metadata": {
"alpr_confidence": 0.9,
"alpr_state": "CA",
"plate_number": "8XYZ012"
}
}'This endpoint allows you to submit image data and associated metadata to our platform for processing. It accepts image URLs along with capture information, location data, and detection-related data.
application/json
application/jsonapplication/json
application/jsonX api key for authentication
your-api-key-hereAuthorization token
Bearer your-access-token-heresensor_identifierhttps://example.com/image.jpg2025-02-11T22:50:25.459ZPOST /image HTTP/1.1
Host: api.genlogs.io
accept: application/json
Content-Type: application/json
x-api-key: your-api-key-here
Authorization: Bearer your-access-token-here
Accept: */*
Content-Length: 412
{
"source": "sensor_identifier",
"image_url": "https://example.com/image.jpg",
"time_captured": "2025-02-11T22:50:25.459Z",
"detection_bounding_box": {
"xmin": 0.1,
"ymin": 0.2,
"xmax": 0.3,
"ymax": 0.4
},
"source_location_info": {
"latitude": 34.2,
"longitude": -118.5,
"city": "Los Angeles",
"state": "CA",
"route": "US-101",
"traffic_direction": "north"
},
"detection_data": {
"alpr_confidence": 0.95,
"alpr_state": "CA",
"plate_number": "ABC1234"
}
}Last updated