Nirmos
SDK reference

Traces reference

Method signatures, parameters, responses and examples for traces.

Use a configured server-side nirmos client from the quickstart. See the traces 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.

MethodTransport
traces.listControl plane
traces.getControl plane

traces.list

List Traces

Control plane: GET /v1/traces.

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.traces.list(
  query?: Queries["listTraces"] /* default: {} */,
  options?: RequestOptions | undefined
): Promise<Responses["listTraces"]>
ParameterRequiredType / default
queryNoQueries["listTraces"]; default {}
optionsNoRequestOptions | undefined

Query fields

FieldRequiredType
limitNonumber | undefined
cursorNostring | undefined
modalityNo"image" | "chat" | "embedding" | undefined
providerIdNostring | undefined
modelIdNostring | undefined
applicationIdNostring | undefined
environmentIdNostring | undefined
traceIdNostring | undefined
successNo"true" | "false" | undefined
fromNostring | undefined
toNostring | undefined

Returns: Responses["listTraces"].

Example

const result = await nirmos.traces.list({});

traces.get

Get Trace

Control plane: GET /v1/traces/: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.traces.get(
  id: string,
  options?: RequestOptions | undefined
): Promise<Responses["getTrace"]>
ParameterRequiredType / default
idYesstring
optionsNoRequestOptions | undefined

Returns: Responses["getTrace"].

Example

const result = await nirmos.traces.get("resource-id");

On this page