BulkJob
An async bulk processing job
idstring<uuid>
Job UUID
Example:
a1b2c3d4-e5f6-7890-abcd-ef1234567890user_idinteger
Owner user ID
typestring
Job type
Possible values: [validate, reverse]
Example:
validatestatusstring
Current job status
Possible values: [pending, processing, completed, failed, cancelled]
Example:
processingtotal_countinteger
Total number of rows to process
Example:
500processed_countinteger
Number of rows processed so far
Example:
250valid_countinteger
Number of successfully resolved rows
Example:
230error_countinteger
Number of rows that failed
Example:
20error_messagestring
Top-level error message (only present if job failed)
results object[]
Full results array (only included on single-job GET when completed)
Array [
rowinteger
Row number (1-based)
Example:
1inputstring
Original input address
Example:
AK-484-9321validboolean
Whether the address is valid and was resolved
Example:
truegps_namestring
Canonical GPS name (if valid)
Example:
AKW4849321regionstring
Example:
Ashantidistrictstring
Example:
Kwadasoareastring
Example:
Hemangpostcodestring
Example:
AKW484latitudenumber<double>
Example:
6.65008longitudenumber<double>
Example:
-1.6487quality_scorenumber<double>
Example:
0.85google_maps_urlstring
Example:
https://www.google.com/maps/search/?api=1&query=6.650080,-1.648700errorstring
Error message (if invalid)
Example:
unknown district code]
created_atstring<date-time>
When the job was submitted
started_atstring<date-time>
When processing began
completed_atstring<date-time>
When the job finished (completed, failed, or cancelled)
BulkJob
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_id": 0,
"type": "validate",
"status": "processing",
"total_count": 500,
"processed_count": 250,
"valid_count": 230,
"error_count": 20,
"error_message": "string",
"results": [
{
"row": 1,
"input": "AK-484-9321",
"valid": true,
"gps_name": "AKW4849321",
"region": "Ashanti",
"district": "Kwadaso",
"area": "Hemang",
"postcode": "AKW484",
"latitude": 6.65008,
"longitude": -1.6487,
"quality_score": 0.85,
"google_maps_url": "https://www.google.com/maps/search/?api=1&query=6.650080,-1.648700",
"error": "unknown district code"
}
],
"created_at": "2024-07-29T15:51:28.071Z",
"started_at": "2024-07-29T15:51:28.071Z",
"completed_at": "2024-07-29T15:51:28.071Z"
}