---
title: "Refresh Account Mode"
method: PUT
path: "/v1/accounts/{account_id}/refresh-mode"
tags: ["accounts"]
---

# Refresh Account Mode

`PUT /v1/accounts/{account_id}/refresh-mode`

## Request

- Base URL: `https://api.usekeel.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usekeel.io/v1/accounts/{account_id}/refresh-mode`
- Auth: none declared

Re-detect account mode from Hyperliquid and update if changed.

## Path parameters

- `account_id` string, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Response `200`

Successful Response

- RefreshModeResponse
  - `account_id` string, required
  - `account_mode` 'standard' | 'unified' | 'portfolio_margin', required: Recognized account modes parseable from historical Keel storage.
  - `previous_mode` 'standard' | 'unified' | 'portfolio_margin': Recognized account modes parseable from historical Keel storage.

## Other responses

- `422`: Validation Error

---

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