Skip to content
GridRouterhome

Search

Search providers, capabilities and pages

Docs
API referenceCalls and routing

Look up a call

GET
/v1/calls/{id}

Cost, timings (total, upstream, overhead, TTFB, queue), provider, outcome and every routed attempt of one call, like OpenRouter's generation lookup. Keys without logs:read only see calls they made. Available a few seconds after the call.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Match^[A-Za-z0-9_-]{3,128}$

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/calls/string"
{  "object": "call_lookup",  "id": "string",  "created_at": "2019-08-24T14:15:22Z",  "capability": "string",  "endpoint_id": "string",  "provider": "string",  "outcome": "hit",  "http_status": 0,  "error_code": "string",  "cost_micro": 0,  "credential": "managed",  "client_mode": "string",  "app_id": "string",  "app_name": "string",  "key_id": "string",  "timings": {    "total_ms": 0,    "upstream_ms": 0,    "overhead_ms": 0,    "ttfb_ms": 0,    "queue_wait_ms": 0  },  "run_id": "string",  "attempts": [    {      "call_id": "string",      "attempt": 0,      "endpoint_id": "string",      "provider": "string",      "outcome": "hit",      "error_code": "string",      "cost_micro": 0,      "total_ms": 0    }  ],  "run_cost_micro": 0}