Call Imports
GET
/api/v1/call-imports/dispatch-diagnostics

Live eval slot usage and fair-dispatch state for operators.

Org admins use this to diagnose cross-workspace starvation (e.g. one workspace's 10k run blocking another's pending eval rows) by inspecting Redis in-flight counters, pending dispatch rows, and scheduler cursors.

Authorization

AuthorizationBearer <token>

JWT access token. Use: Authorization: Bearer .

In: header

Query Parameters

workspace_id?|

Optional workspace filter. When omitted, returns every workspace in the organization with active eval dispatch state.

include_idle_workspaces?Include Idle Workspaces

When true, include org workspaces with zero pending rows and zero in-flight slots.

Defaultfalse

Header Parameters

Authorization?string|null
X-API-Key?string|null
X-EFFICIENTAI-API-KEY?string|null
X-Workspace-Id?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/call-imports/dispatch-diagnostics"
{  "limits": {    "global_limit": 0,    "global_inflight": 0,    "global_at_capacity": true,    "org_limit": 0,    "org_inflight": 0,    "org_at_capacity": true,    "workspace_limit": 0,    "job_limit": 0,    "fair_dispatch_batch_size": 0  },  "fair_dispatch": {    "global_rr_cursor": 0,    "dispatch_dedupe_active": true,    "dispatch_queue": "string",    "at_capacity_backoff_seconds": 0  },  "workspaces": [    {      "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",      "workspace_name": "string",      "workspace_slug": "string",      "inflight": 0,      "inflight_at_capacity": true,      "pending_dispatch_rows": 0,      "pending_import_rows": 0,      "eval_rr_cursor": 0,      "active_evaluations": 0,      "evaluations": [        {          "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324",          "call_import_id": "cb7f39d3-0e2b-434e-a045-67668dae83d6",          "status": "string",          "total_rows": 0,          "pending_rows": 0,          "running_rows": 0,          "job_inflight": 0,          "job_at_capacity": true        }      ]    }  ],  "generated_at": "2019-08-24T14:15:22Z"}

Community & contact

  1. Found a bug or have a feature request? Open a GitHub issue.
  2. Join our Discord for faster replies!