## Get Account By ID `$ clear-street v1:accounts get-account-by-id` **get** `/v1/accounts/{account_id}` Fetch account details by ID ### Parameters - `--account-id: number` Account identifier ### Returns - `V1AccountGetAccountByIDResponse: BaseResponse` - `data: object { id, account_holder_entity_id, full_name, 7 more }` Represents a trading account - `id: number` The unique identifier for the account - `account_holder_entity_id: number` The account holder entity identifier - `full_name: string` The full legal name of the account - `open_date: string` The date the account was opened - `options_level: number` The options level of the account - `short_name: string` The short name of the account - `status: "ACTIVE" or "INACTIVE" or "CLOSED"` The current status of the account - `"ACTIVE"` - `"INACTIVE"` - `"CLOSED"` - `subtype: "CASH" or "MARGIN" or "OTHER"` The sub-type of account - `"CASH"` - `"MARGIN"` - `"OTHER"` - `type: "CUSTOMER" or "OTHER"` The type of account - `"CUSTOMER"` - `"OTHER"` - `close_date: optional string` The date the account was closed, if applicable ### Example ```cli clear-street v1:accounts get-account-by-id \ --api-key 'My API Key' \ --account-id 0 ``` #### Response ```json { "data": { "account_holder_entity_id": 987654321, "close_date": null, "full_name": "Test Trading Account", "id": 19816, "open_date": "2023-01-15", "short_name": "TST-ACCOUNT-01", "status": "ACTIVE", "subtype": "MARGIN", "type": "CUSTOMER" }, "error": null, "metadata": { "request_id": "b7e2d3f4-a1b2-4c3d-8e4f-5a6b7c8d9e0f" } } ```