Skip to main content
The Hog uses two response patterns depending on how long an operation takes. Fast operations return data immediately in the response body with a 200 status. Operations that require more processing time — like enriching large contact lists or running deep research — return a 202 Accepted response with an operation ID you can poll until the work is done. Knowing which pattern to expect helps you design your integration correctly from the start.

Sync operations (200)

These calls complete quickly and return data directly in the response. You don’t need to do anything after the initial request.

Async operations (202)

These calls kick off background work and return immediately with a poll URL. You retrieve the result by polling GET /api/operations/:id until the status reaches succeeded or failed.
Data is available immediately in the data field.

How to poll

Once you have an operationId, call GET /api/operations/:id on a schedule until the status is terminal.

Operation status values

Don’t poll more aggressively than once per second. The operations endpoint has a dedicated rate limit. If you exceed it, you’ll receive a 429 response.
Estimate responses include:

Idempotency

For async POST requests, you can supply an Idempotency-Key header. If you retry the same request with the same key within the idempotency window, the API returns the original response rather than creating a duplicate operation. This example uses a batch enrichment request, which is always asynchronous.
Use a deterministic idempotency key — such as a hash of the request payload or a stable record ID — so that retries after a network failure are safe and don’t double-charge credits.