Request logs reference
Method signatures, parameters, responses and examples for request logs.
Use a configured server-side nirmos client from the quickstart. See the request logs guide for prerequisites and workflows. Example IDs and configured model names are placeholders; replace them with organization-visible resources before executing. Mutating calls change live resources.
HTTP calls reject with APIError subclasses on unsuccessful HTTP responses and may throw NetworkError, TimeoutError or RequestAbortedError. Signatures describe SDK values after response decoding; they are not raw HTTP envelopes. Backend validation, permissions and feature availability remain authoritative.
logs.list
List Logs
Control plane: GET /v1/logs.
Credentials: Personal or service API key with the required grants.
Required permission: observability:read.
REST endpoint, security and schemas · Related guide
Types: Queries · RequestOptions · Responses
nirmos.logs.list(
query?: Queries["listLogs"] /* default: {} */,
options?: RequestOptions | undefined
): Promise<Responses["listLogs"]>| Parameter | Required | Type / default |
|---|---|---|
query | No | Queries["listLogs"]; default {} |
options | No | RequestOptions | undefined |
Query fields
| Field | Required | Type |
|---|---|---|
limit | No | number | undefined |
cursor | No | string | undefined |
modality | No | "image" | "chat" | "embedding" | undefined |
providerId | No | string | undefined |
modelId | No | string | undefined |
applicationId | No | string | undefined |
environmentId | No | string | undefined |
traceId | No | string | undefined |
success | No | "true" | "false" | undefined |
from | No | string | undefined |
to | No | string | undefined |
Returns: Responses["listLogs"].
Example
const result = await nirmos.logs.list({});logs.get
Get Log
Control plane: GET /v1/logs/:id.
Credentials: Personal or service API key with the required grants.
Required permission: observability:read.
REST endpoint, security and schemas · Related guide
Types: RequestOptions · Responses
nirmos.logs.get(
id: string,
options?: RequestOptions | undefined
): Promise<Responses["getLog"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
options | No | RequestOptions | undefined |
Returns: Responses["getLog"].
Example
const result = await nirmos.logs.get("resource-id");