Skip to content

Enrich businesses in bulk

An enrichment job takes 1 to 10,000 business records and returns results asynchronously.

Submit an enrichment job

Each object in pois is the single-place POST /v1/enrich body: standard attributes, custom research attributes, the reserved research fields (owners, key_people, brand, parent_company, and the rest), and the checks (verify_name, verify_address, verify_registered_address). An unknown key on a row is rejected with 400, so a misspelled check cannot silently skip it. estimate_only, sample and max_credits are request options, not row fields. 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).

curl https://api.voygr.tech/v1/jobs/enrich \
  --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,
        "country": "US",
        "attributes": ["phone", "website"]
      },
      {
        "id": "cafe-002",
        "poi_name": "Example Cafe",
        "address": "456 Sample Avenue",
        "latitude": 37.7755,
        "longitude": -122.4183,
        "country": "US",
        "attributes": ["opening_hours"]
      }
    ]
  }'

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 enrichment job

curl "https://api.voygr.tech/v1/jobs/$BATCH_ID" \
  --header "X-API-Key: $VOYGR_API_KEY"

Stop polling when status is completed, failed, or cancelled. A completed job lists a compressed JSON Lines download in results.files; download from url before expires_at, or poll again for a fresh URL.

Each line follows the single-place enrichment response contract, in input order. A row with research attributes or checks carries the same identity, address_checks and per-cell abstain_reason as its POST /v1/enrich response. A failed place is a failure line; it does not fail the job.

When the quick extraction finds no value for a standard attribute (opening_hours, phone, website, email, facebook, instagram, tiktok, x), the row researches it before it is returned, so a job can return values that single POST /v1/enrich calls would leave empty. A researched value has the same shape and passes the same checks. Rows that research take minutes rather than seconds, and only a few run at once, so allow longer than eta_seconds when many values are missing.

Understand job billing

Each row reserves what its POST /v1/enrich call would cost and is charged what that call would keep: 1 credit for standard attributes that return a billable result, the research price per research attribute, and the check price: 1 for the name and trading address checks together, 1 more for the registered address. Researching an empty standard attribute costs nothing extra: a value it finds counts toward that 1 credit like any other. The unused reservation is released when the job finishes, and failed rows are never charged. progress.succeeded in the job status counts credits charged for a job with research attributes or checks, and billable rows for a job of standard attributes only.

Handle enrichment-job errors

  • 400: correct the request. For VALIDATION_ERROR, detail lists each invalid field, message, and error type.
  • 401 or 403: check the key and its access. Any key that can call POST /v1/enrich can submit an enrichment job.
  • 422 with error_code: FIELD_REJECTED: a research attribute asks for something the service does not research; rejected_fields names it. The whole job is refused before anything is reserved.
  • 402: the available credit balance cannot cover the request; add credits before retrying.
  • 409: inspect error_code, including IDEMPOTENCY_CONFLICT as described above.
  • 429 with error_code: BATCH_CONCURRENCY_LIMIT: the key already has 20 jobs in progress. Wait retry_after_seconds (this response has no Retry-After header) or until a job finishes. Any other 429 is the rate limit: wait and follow Retry-After when returned.
  • 502 with error_code: BACKEND_ERROR or 504 with error_code: BACKEND_TIMEOUT: the job may have been created before the failure. Retry promptly with the same Idempotency-Key and 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.