---
title: "Read the recent daily usage trend for the org this connection is bound to (personal or team) for hosted execute and u..."
method: GET
path: "/v1/account/usage/trend"
tags: ["account"]
---

# Read the recent daily usage trend for the org this connection is bound to (personal or team) for hosted execute and u...

`GET /v1/account/usage/trend`

## Request

- Base URL: `https://api.kody.codes`
- URL: `https://api.kody.codes/v1/account/usage/trend`
- Auth: HTTP bearer

Read the recent daily usage trend for the org this connection is bound to (personal or team) for hosted execute and unique Worker days (plus optional job/automation daily counts), with a cheap monthly rollup series from usage_rollups for charts.

Org permission: `billing:read`.

## Response `200`

Success.

- object
  - `days` object[], required
    - `day` string, required
    - `execute` integer, required
    - `uniqueWorkerDays` integer, required
    - `jobRuns` integer
    - `automationInvocations` integer
    - `packageExports` integer
  - `months` object[]
    - `month` string, required
    - `execute` integer, required
    - `uniqueWorkerDays` integer, required
  - `retentionDays` integer, required
  - `asOf` string, required

## Other responses

- `400`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `401`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `403`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `404`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `409`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `413`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `429`: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
- `500`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `503`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `default`: Error envelope `{ "error": { "code", "message", "details"? } }`.

---

[API](https://skmtc.dev/kody/apis/kody-api.md) · [All operations](https://skmtc.dev/kody/apis/kody-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kody/apis/kody-api/revisions/a020ecedb82b?raw)
