Usage
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
Usage meter
Section titled “Usage meter”GET /v1/orgs/{org}/usageMy 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
200The meter — Usage400Malformed request (e.g. invalid cursor or filter) — Problem401Missing, invalid or expired token — Problem
Activity log (30 days)
Section titled “Activity log (30 days)”GET /v1/orgs/{org}/activityEvery 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
200A page of entries — ActivityPage401Missing, invalid or expired token — Problem