ReferenceCloud managementPaginated request history

Paginated request history

1 min readEdit this page
GET
/v1/namespaces/{nsid}/requests

Per-request metadata. Never includes the prompt or response body.

Requires the usage:read scope.

Authorization

x-api-key<token>

Anthropic-style API key header.

In: header

Path Parameters

nsid*string

Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.

Query Parameters

limit?string

Page size. Default 25, max 100.

offset?string

Offset within the newest-first listing.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/namespaces/string/requests"
{  "data": [    {      "billing_status": "computed",      "completed_at": "2019-08-24T14:15:22Z",      "completion_tokens": 0,      "created_at": "2019-08-24T14:15:22Z",      "final_charge_micro_usd": 0,      "finish_reason": "string",      "first_token_kind": "string",      "funding_source": "string",      "generation_duration_ms": 0,      "id": "string",      "model_id": "string",      "prompt_tokens": 0,      "provider_id": "string",      "request_duration_ms": 0,      "request_id": "string",      "routing_profile": "string",      "status": "string",      "status_code": 0,      "streamed": true,      "ttft_ms": 0,      "upstream_duration_ms": 0,      "usage_evidence": {        "effective_usage": {          "cache_read_tokens": 0,          "cache_write_tokens": 0,          "completion_tokens": 0,          "media_input_count": 0,          "media_output_count": 0,          "prompt_tokens": 0,          "reasoning_tokens": 0,          "web_search_count": 0        },        "estimator": {          "chars_per_token": 0,          "version": "string"        },        "raw_usage": {          "cache_read_tokens": 0,          "cache_write_tokens": 0,          "completion_tokens": 0,          "prompt_tokens": 0,          "reasoning_tokens": 0,          "web_search_count": 0        },        "raw_usage_frames": [          {            "account_label": "string",            "attempt_ordinal": 0,            "frame_kind": "usage",            "frame_ordinal": 0,            "provider_id": "string",            "provider_model_id": "string",            "usage": {              "cache_read_tokens": 0,              "cache_write_tokens": 0,              "completion_tokens": 0,              "prompt_tokens": 0,              "reasoning_tokens": 0,              "web_search_count": 0            }          }        ],        "source": "provider_reported"      },      "used_capabilities": [        "string"      ]    }  ],  "limit": 0,  "offset": 0}
{  "error": "string",  "error_description": "string"}
{  "error": "string",  "error_description": "string"}
{  "error": "string",  "error_description": "string"}

How is this guide?