Skip to content

Bulk Jobs

Run high-volume imports through Geobridge and stream results as soon as matches are ready. The bulk API pairs asynchronous processing with NDJSON delivery so you can fan out work without waiting for archives to download.

MethodPathDescriptionTry it
POST/v1/bulk/jobsCreate a job from an HTTPS, S3, or inline payload. Optionally configure a webhook callback.
GET/v1/bulk/jobs/{job_id}Poll job metadata including lifecycle timestamps and failure details.
DELETE/v1/bulk/jobs/{job_id}Cancel or purge a completed job.
GET/v1/bulk/jobs/{job_id}/resultsRetrieve results inline, via a presigned URL, or as a streaming NDJSON feed.

Set format=ndjson and request Accept: application/x-ndjson to receive a live feed of records. Each line is a standalone JSON document that maps the original id to the matched features.

Terminal window
curl -s -N 'https://api-na.geobridge.io/v1/bulk/jobs/{job_id}/results?format=ndjson' \
-H 'Accept: application/x-ndjson' \
-H "X-API-Key: ${GEOBRIDGE_API_KEY}" \
| tee results.ndjson

Each newline is a valid JSON document. Pipe it into jq, queue workers, or downstream storage without waiting for the full job to complete.

GET /bulk/jobs/{job_id}/results returns a BulkJobResults document:

  • job echoes the metadata from GET /bulk/jobs/{job_id} so you can reconcile status without an extra request.
  • format reflects the payload you requested (geojson, ndjson, or csv).
  • results contains one of:
    • a GeoJSON feature collection (inline when format=geojson and the payload is small),
    • a presigned URL for large archives, or
    • a stream of newline-delimited strings for NDJSON.

Refer to #/components/schemas/BulkJobResults for exact field definitions.

Pair streaming with a webhook to learn when Geobridge finishes processing. Configure the webhook when you create the job:

callback object
{
"url": "https://example.org/bulk/callback",
"secret": "${GEOBRIDGE_WEBHOOK_SECRET}",
"retry_policy": {
"max_attempts": 5,
"strategy": "exponential"
}
}

See the Bulk job completion callback for the signing algorithm and replay mitigation guidance.