Job History

List historical jobs with filtering options.

GET/v2/jobs/history

Job History

List historical jobs with filtering options.

cURL
curl -G https://api.omtx.ai/v2/jobs/history \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "limit=10" \
  --data-urlencode "status=succeeded"

When to use

  • Tracking job expenses
  • Reviewing past analyses
  • Debugging failed jobs

Typical flow

  • Query with filters
  • Page through results
  • Fetch detailed results as needed
Response
{
  "items": [
    {
      "job_id": "job_123abc",
      "job_type": "diligence.deep_diligence",
      "endpoint": "/v2/diligence/deep-diligence",
      "method": "POST",
      "status": "succeeded",
      "request_payload": { "query": "EGFR inhibitor binding affinity", "preset": "quick" },
      "response_payload": { "total_claims": 15, "total_primary_gathers": 2 },
      "error": null,
      "metadata": {},
      "output_type": "deep_diligence",
      "output_reference": "req_abc123",
      "credits_charged": 100,
      "cost_cents": 100,
      "idempotency_key": "dd-123",
      "retry_count": 0,
      "last_heartbeat": "2024-01-15T10:04:00Z",
      "created_at": "2024-01-15T10:00:00Z",
      "updated_at": "2024-01-15T10:05:00Z",
      "completed_at": "2024-01-15T10:05:00Z"
    }
  ],
  "count": 1,
  "next_cursor": "2024-01-15T09:59:59Z"
}