A
ApiOne
/Docs

Async Jobs

For large-scale enrichment workflows, ApiOne supports asynchronous job submission. Instead of making individual synchronous calls for each record, you submit a batch of up to 1,000 records in a single request and receive results via webhook or polling when processing is complete.

When to use async jobs

Use async jobs when you need to enrich more than 20 records at a time, when your processing pipeline can tolerate a delay of seconds to minutes, or when you want to avoid managing rate limits in your application code. Async jobs are processed in the background and are not subject to the per-minute rate limit.

Submitting an async job

curl -X POST https://apione.store/api/v1/async/enrich \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "company",
    "records": [
      {"domain": "stripe.com"},
      {"domain": "shopify.com"},
      {"domain": "twilio.com"}
    ],
    "webhook_url": "https://your-server.com/webhooks/apione"
  }'

Request parameters

ParameterTypeRequiredDescription
typestringrequiredEnrichment type: company, people, or email
recordsarrayrequiredArray of input objects. Max 1,000 records per job.
webhook_urlstringoptionalURL to receive results when the job completes. If omitted, poll for status.

Response

{
  "status": "success",
  "job_id": "job_abc123xyz",
  "estimated_completion_seconds": 45,
  "total_records": 3
}

Polling for job status

If you did not provide a webhook_url, poll the job status endpoint:

curl https://apione.store/api/v1/async/status/job_abc123xyz \
  -H "X-API-Key: YOUR_API_KEY"

Status values

StatusMeaning
queuedJob is waiting to be processed
processingJob is currently being processed
completedJob finished successfully — results are available
failedJob encountered an unrecoverable error

Retrieving results

When the job status is completed, retrieve the results:

curl https://apione.store/api/v1/async/results/job_abc123xyz \
  -H "X-API-Key: YOUR_API_KEY"

Limits

PlanMax records per jobConcurrent jobsResult retention
Free50124 hours
Starter50057 days
Growth1,0002030 days
Scale1,0005090 days
Results are stored for the retention period shown above. After that, they are permanently deleted. Download or process results before the retention window expires.

Related