Skip to main content
Some of our endpoints are asynchronous: they answer immediately while the work continues in the background. This is common for operations that take longer to complete, such as contact enrichment or search extraction.

How it works

Asynchronous endpoints answer immediately with a Location header, also returned as status_url in the body: the URL that holds the result. Enrichment answers 200; searches and imports answer 201.
There are two ways to get the result:

Polling Method

  1. Make a request to an async endpoint
  2. Read the status URL from the Location header (or status_url in the body)
  3. Poll it until the job is finished, backing off between calls (start at 2 seconds, cap at 30). A contact enrichment can also end as failed when credits run out mid-enrichment; code says whether it was the balance (insufficient_credits) or the workspace weekly limit (workspace_limit_exceeded)
  4. Read the result from the same response
Status lookups are exempt from the plan rate limit, so polling never uses up your quota.

Webhook Method

  1. Make a request to an async endpoint with a webhook_url
  2. Keep the job id from the response (enrichment_id for enrichments, id for searches and imports)
  3. Continue your application flow
  4. Receive results automatically via webhook when the job completes (status: "completed"), or a status: "failed" notice with a code if credits run out
In order to avoid unnecessary load on our servers, we suggest using the webhook method.

Endpoints

Every endpoint below returns its status URL in the Location header and as status_url. POST /contacts/bulk_enrich has no status URL: get its results through the webhook.