> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bigcapital.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieves the account details.



## OpenAPI

````yaml api-reference/openapi.json get /api/accounts/{id}
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/accounts/{id}:
    get:
      tags:
        - Accounts
      summary: Retrieves the account details.
      operationId: AccountsController_getAccount
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
        - name: id
          required: true
          in: path
          description: The account id
          schema:
            type: number
      responses:
        '200':
          description: The account details have been successfully retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponseDto'
        '404':
          description: The account not found.
components:
  schemas:
    AccountResponseDto:
      type: object
      properties:
        id:
          type: number
          description: The unique identifier of the account
          example: 1
        name:
          type: string
          description: The name of the account
          example: Cash Account
        slug:
          type: string
          description: The slug of the account
          example: cash-account
        code:
          type: string
          description: The code of the account
          example: '1001'
        index:
          type: number
          description: The index of the account
          example: 1
        accountType:
          type: string
          description: The type of the account
          example: bank
        accountTypeLabel:
          type: string
          description: The formatted account type label
          example: Bank Account
        parentAccountId:
          type: number
          description: The parent account ID
          example: null
        predefined:
          type: boolean
          description: Whether the account is predefined
          example: false
        currencyCode:
          type: string
          description: The currency code of the account
          example: USD
        active:
          type: boolean
          description: Whether the account is active
          example: true
        bankBalance:
          type: number
          description: The bank balance of the account
          example: 5000
        bankBalanceFormatted:
          type: string
          description: The formatted bank balance
          example: $5,000.00
        lastFeedsUpdatedAt:
          type: object
          description: The last feeds update timestamp
          example: '2024-03-20T10:30:00Z'
        lastFeedsUpdatedAtFormatted:
          type: string
          description: The formatted last feeds update timestamp
          example: Mar 20, 2024 10:30 AM
        amount:
          type: number
          description: The amount of the account
          example: 5000
        formattedAmount:
          type: string
          description: The formatted amount
          example: $5,000.00
        plaidItemId:
          type: string
          description: The Plaid item ID
          example: plaid-item-123
        plaidAccountId:
          type: string
          description: The Plaid account ID
          example: plaid-account-456
        isFeedsActive:
          type: boolean
          description: Whether the feeds are active
          example: true
        isSyncingOwner:
          type: boolean
          description: Whether the account is syncing owner
          example: true
        isFeedsPaused:
          type: boolean
          description: Whether the feeds are paused
          example: false
        accountNormal:
          type: string
          description: The account normal
          example: debit
        accountNormalFormatted:
          type: string
          description: The formatted account normal
          example: Debit
        flattenName:
          type: string
          description: The flatten name with all dependant accounts names
          example: 'Assets: Cash Account'
        accountLevel:
          type: number
          description: The account level in the hierarchy
          example: 2
        createdAt:
          format: date-time
          type: string
          description: The creation timestamp
          example: '2024-03-20T10:00:00Z'
        updatedAt:
          format: date-time
          type: string
          description: The update timestamp
          example: '2024-03-20T10:30:00Z'
      required:
        - id
        - name
        - slug
        - code
        - index
        - accountType
        - accountTypeLabel
        - parentAccountId
        - predefined
        - currencyCode
        - active
        - bankBalance
        - bankBalanceFormatted
        - lastFeedsUpdatedAt
        - lastFeedsUpdatedAtFormatted
        - amount
        - formattedAmount
        - plaidItemId
        - plaidAccountId
        - isFeedsActive
        - isSyncingOwner
        - isFeedsPaused
        - accountNormal
        - accountNormalFormatted
        - flattenName
        - accountLevel
        - createdAt
        - updatedAt

````