---
title: "List stored Codex ChatGPT accounts"
method: GET
path: "/api/codex-oauth/accounts"
tags: ["Codex OAuth"]
---

# List stored Codex ChatGPT accounts

`GET /api/codex-oauth/accounts`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/codex-oauth/accounts`
- Auth: HTTP bearer

## Response `200`

Stored account metadata

- object
  - `accounts` object[], required
    - `slot` integer, required
    - `configKey` string, required
    - `legacy` boolean, required
    - `suffix` string, nullable, required
    - `plan` string, nullable, required
    - `email` string, nullable, required
    - `status` 'ok' | 'needs_login' | 'unchecked', required

## Other responses

- `403`: Caller cannot read all secrets

## Changes

- **2026-10-26** `fb54d6d637a2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/codex-oauth/accounts/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
