Search
Search and rank relevant sources with guided selection and optional crawl.
POST
/v2/diligence/searchSearch
Search and rank relevant sources with guided selection and optional crawl.
cURL
curl -X POST https://api.omtx.ai/v2/diligence/search \
-H "x-api-key: YOUR_API_KEY" \
-H "idempotency-key: search-$(date +%s)" \
-H "Content-Type: application/json" \
-d '{
"query": "EGFR inhibitors binding affinity"
}'When to use
- Finding sources for a target or mechanism
- Quick evidence scans before deeper workflows
Typical flow
- Submit search query
- Poll
/v2/jobs/{job_id} - Read
response_payload; if it saysstorage: artifact, fetch/v2/jobs/{job_id}/artifacts/results.jsonfor the full results
Response
{
"job_id": "job_789ghi",
"status": "running"
}- This endpoint runs asynchronously and returns
202withjob_id. - Poll
/v2/jobs/{job_id}until status issucceeded. - For artifact-backed runs,
response_payloadis a compact manifest and the full search payload is available from/v2/jobs/{job_id}/artifacts/results.json.