How it works
Asynchronous enrichment answers immediately with aLocation header, also returned as status_url in the body: the URL that holds the result.
Polling Method
- Make a request to an async endpoint
- Read the status URL from the
Locationheader - Poll it until
statusisfinished, backing off between calls (start at 2 seconds, cap at 30) - Read the result from the same response
Webhook Method
- Make a request to an async endpoint with a
webhook_url - Keep the
enrichment_idfrom the response - Continue your application flow
- Receive results automatically via webhook when the job completes