A validation job takes 1 to 10,000 business records and returns results asynchronously.
Submit a validation job
Each object in pois is the POST /v1/validate request body. Set IDEMPOTENCY_KEY to a unique value for this request; reuse it only when retrying the same body.
Send coordinates as a pair, latitude and longitude in decimal degrees (WGS84), and include the address with them.
curl https://api.voygr.tech/v1/jobs/validate \
--request POST \
--header "X-API-Key: $VOYGR_API_KEY" \
--header "Idempotency-Key: $IDEMPOTENCY_KEY" \
--header "Content-Type: application/json" \
--data '{
"pois": [
{
"id": "bakery-001",
"poi_name": "Example Bakery",
"address": "123 Example Street",
"latitude": 37.7749,
"longitude": -122.4194
},
{
"id": "cafe-002",
"poi_name": "Example Cafe",
"address": "456 Sample Avenue",
"latitude": 37.7755,
"longitude": -122.4183
}
]
}'
The submission response contains batch_id, status, created_at, total_items, eta_seconds, and eta_completion_at. Set BATCH_ID to the returned batch_id before polling.
Retry a submission safely
Keep the returned batch_id and poll it with GET; do not repeat the POST. If the submission response was lost, retry promptly with the same Idempotency-Key and identical body. That returns the original job only while its idempotency record is retained and the job has not been cancelled.
After cancellation, the same key can create a new job and incur new charges. Replay also stops when the retention window expires, so an old key is no permanent deduplication guarantee. If you are unsure whether replay still applies, check the saved job or contact support@voygr.tech before resubmitting.
While replay applies, a different body under the same key returns 409 with error_code: IDEMPOTENCY_CONFLICT. Use a new key for new work.
Poll the validation job
curl "https://api.voygr.tech/v1/jobs/$BATCH_ID" \
--header "X-API-Key: $VOYGR_API_KEY"
queued means waiting to start and running means rows are being processed. Stop polling at completed, failed, or cancelled.
When status is completed, read results.format, results.total_items, and results.files. Download the compressed JSON Lines file from each file’s url before expires_at, or poll again for a fresh URL. Each line follows the POST /v1/validate response contract, in input order.
Handle validation errors
400: correct the request. ForVALIDATION_ERROR,detaillists each invalid field, message, and error type.401or403: check the key and its access.402: the available credit balance cannot cover the request; add credits before retrying.409: inspecterror_code, includingIDEMPOTENCY_CONFLICTas described above.429witherror_code: BATCH_CONCURRENCY_LIMIT: the key already has 20 jobs in progress. Waitretry_after_seconds(this response has noRetry-Afterheader) or until a job finishes. Any other429is the rate limit: wait and followRetry-Afterwhen returned.502witherror_code: BACKEND_ERRORor504witherror_code: BACKEND_TIMEOUT: the job may have been created before the failure. Retry promptly with the sameIdempotency-Keyand identical body: you get the job back if it exists, or a new one. If the job was never created, we release its credit hold and charge nothing.
Errors the gateway returns itself (401, 403, 402 when the balance cannot cover the request, and the 429 rate limit) put the message inside detail, for example {"detail": {"error": "invalid API key"}}, with no request_id. Errors from the service behind the gateway carry error, error_code and request_id at the top level. The 502 and 504 bodies come from the gateway too: error and error_code at the top level, with no request_id and no detail wrapper.
Keep the returned batch_id and request_id when contacting support@voygr.tech.
On this page
