---
title: "Spend one Codex usage-limit reset of an account"
method: POST
path: "/api/v1/agents/accounts/{accountId}/reset-credit"
tags: ["agents"]
---

# Spend one Codex usage-limit reset of an account

`POST /api/v1/agents/accounts/{accountId}/reset-credit`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/agents/accounts/{accountId}/reset-credit`
- Auth: none declared

## Path parameters

- `accountId` string, required: Agent account identifier; device-claude and device-codex are this computer's own logins.

## Request body

- ConsumeAgentAccountResetCreditRequest
  - `idempotencyKey` string, required

## Response `200`

OK

- ConsumeAgentAccountResetCreditResponse
  - `outcome` 'reset' | 'already_redeemed' | 'nothing_to_reset', required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 3 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `400`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `404`
  - 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/:accountId/reset-credit/post.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)
