Skip to content

Generated from api/openapi.yaml (OpenAPI 3.1). Base URL: https://api.teemli.com. Auth: Authorization: Bearer <token or tml_ API key>. Errors are application/problem+json; writes accept an Idempotency-Key header.

Spend vs budget, and the 30-day activity log

GET /v1/orgs/{org}/usage

My AI spend this month against my budget, each agent’s spend against its budget (“62% of this month’s budget”), daily spend, the most expensive conversations, and spend by model. Warn at warning_threshold (80%); work stops at 100% (turn.error = budget_exhausted).

API keys: needs the agents:read scope.

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
month query string YYYY-MM (default: this month, UTC)

Responses

  • 200 The meter — Usage
  • 400 Malformed request (e.g. invalid cursor or filter) — Problem
  • 401 Missing, invalid or expired token — Problem
GET /v1/orgs/{org}/activity

Every tool call and model call of agents I own or manage (admins: the whole organisation), newest first. Metadata only (tool, target, decision, outcome, cost) — never prompt or reply content; open the step via turn_id/step_id for that (owner only).

API keys: needs the agents:read scope.

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
agent_id query string (uuid)
tool query string e.g. memory.save, or model
limit query integer Page size.
cursor query string Opaque cursor from a previous page’s next_cursor.

Responses

  • 200 A page of entries — ActivityPage
  • 401 Missing, invalid or expired token — Problem