---
title: "List Claude Code and Codex accounts with their limits"
method: GET
path: "/api/v1/agents/accounts"
tags: ["agents"]
---

# List Claude Code and Codex accounts with their limits

`GET /api/v1/agents/accounts`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/agents/accounts`
- Auth: none declared

## Query parameters

- `refresh` boolean: Read identity and limits again even when the last reading is fresh.

## Response `200`

OK

- AgentAccountsResponse
  - `accounts` AgentAccountResponse[], required
    - `createdAt` string, date-time, nullable
    - `default` boolean, required
    - `device` boolean, required
    - `email` string
    - `id` string, required
    - `limits` AgentAccountLimits
      - `activity` AgentAccountActivity
        - `currentStreakDays` integer, nullable
        - `latestDay` string, nullable
        - `latestDayTokens` integer, nullable
        - `lifetimeTokens` integer, nullable
        - `longestTurnSeconds` integer, nullable
        - `peakDailyTokens` integer, nullable
      - `extraUsage` AgentAccountExtraUsage
        - `currency` string
        - `enabled` boolean, required
        - `monthlyLimit` number, nullable
        - `usedCredits` number, nullable
      - `fetchedAt` string, date-time, required
      - `resetCredits` integer, nullable
      - `windows` AgentAccountLimitWindow[], required
        - `id` string, required
        - `label` string, required
        - `resetsAt` string, date-time, nullable
        - `usedPercent` number, double, required
    - `plan` string
    - `problem` string
    - `provider` 'claude' | 'codex', required
    - `signedIn` boolean, required

## Other responses

- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 1 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-18** `7e984b9a98ab`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/agents/accounts/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
