API referenceCalls and routing
Look up a call
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}Get private cache stats GET
Records (entities and exact responses), bytes, hits and the vendor spend cache hits saved this month and all time, plus daily hit/partial/miss counts. Cache hits are always free.
Call an endpoint POST
Call one vendor endpoint. Reserves the worst-case cost, charges the actual cost. Async vendors return a job.