Empezar gratis →

Referencia de la API

Uso, gasto y huella

Leer las trazas de uso, el informe de gasto y ahorro, los presupuestos y su consumo, y la huella estimada de energía y de carbono.

Toda la referencia de la API

Los resúmenes de las rutas y los nombres de los campos están en inglés, aquí y en el archivo.

/api/v1/usage

GET /api/v1/usage

The workspace's usage traces, newest first (paginated)

Autenticación
Clave API
Ámbito de la clave
usage:read
Parámetros
limit · offset · cursor · since · model · agentId · status

/api/v1/report

GET /api/v1/report

The spend and savings report of the workspace

Autenticación
Clave API
Ámbito de la clave
usage:read
Parámetros
days · subscriptionCostUsd

/api/v1/budgets

GET /api/v1/budgets

The workspace's budgets and their use

Autenticación
Clave API
Ámbito de la clave
budgets:read

/api/v1/greenops

GET /api/v1/greenops/footprint

The workspace's estimated energy and carbon footprint, over an API key

Autenticación
Clave API
Ámbito de la clave
usage:read
Parámetros
periodDays

GET /api/v1/greenops/energy

Energy per day and per strategy, and the workspace's energy budget

Autenticación
Clave API o sesión iniciada
Parámetros
workspaceId · days · feature

GET /api/v1/greenops/summary

GreenOps key figures (the dashboard's read)

Autenticación
Sesión iniciada (el panel)
Parámetros
workspaceId (obligatorio) · periodDays

GET /api/v1/greenops/carbon

Estimated carbon totals and their monthly trend (the dashboard's read)

Autenticación
Sesión iniciada (el panel)
Parámetros
workspaceId (obligatorio) · periodDays · months

GET /api/v1/greenops/provider-efficiency

Energy per 1,000 tokens, per provider and model (the dashboard's read)

Autenticación
Sesión iniciada (el panel)
Parámetros
workspaceId (obligatorio) · periodDays

GET /api/v1/greenops/replay-savings

Energy saved by reusing answers (the dashboard's read)

Autenticación
Sesión iniciada (el panel)
Parámetros
workspaceId (obligatorio) · periodDays

GET /api/v1/greenops/abatement

Avoided CO₂ with its traceability (the dashboard's read)

Autenticación
Sesión iniciada (el panel)
Parámetros
workspaceId (obligatorio) · periodDays

GET /api/v1/greenops

Obsoleta — Deprecated: use /api/v1/greenops/summary

Autenticación
Sesión iniciada (el panel)
Parámetros
workspaceId (obligatorio) · periodDays