Retry-After, polls with backoff, and preserves ready results when some candidates fail.
Request
request_id before the first POST. If every attempt fails, call startSearch again later with the same saved ID: Orbit returns the search it already accepted instead of starting a second paid one. The thrown error carries the ID as error.requestId. If you send no ID, Orbit generates one, but then a lost response cannot be resumed. Persist the returned search_id; it is the handle used for every later poll.
Poll
Consume Results
completed_with_errors is a usable partial success. Keep the ready profiles and decide whether each failed result warrants a new logical request.
Each ready profile carries the person’s identity and contact fields and generated sections, such as bio, jobs, and education. For the image gallery and source links, call Read a profile with its profile_id. That explicit read uses the profile-read credit rate.
Production Checklist
- Use a key with
search:readand, when embedding profiles,profile:read. - Persist
search_idwith your job record. - Put a client-side deadline around polling, but do not start duplicate work when it expires.
- Honor
Retry-Afteron429responses. - Log the Search ID, terminal status, and failure codes.
- Set
include_profile: falsewhen a downstream worker only needs IDs.
