> ## 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 item categories.



## OpenAPI

````yaml api-reference/openapi.json get /api/item-categories
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/item-categories:
    get:
      tags:
        - Item Categories
      summary: Retrieves the item categories.
      operationId: ItemCategoryController_getItemCategories
      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
      responses:
        '200':
          description: The item categories have been successfully retrieved.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ItemCategoryResponseDto'
components:
  schemas:
    ItemCategoryResponseDto:
      type: object
      properties:
        id:
          type: number
          example: 1
          description: The unique identifier of the item category
        name:
          type: string
          example: Electronics
          description: The name of the item category
        description:
          type: string
          example: Electronic devices and accessories
          description: The description of the item category
        costAccountId:
          type: number
          example: 1
          description: The cost account ID
        sellAccountId:
          type: number
          example: 1
          description: The sell account ID
        inventoryAccountId:
          type: number
          example: 1
          description: The inventory account ID
        costMethod:
          type: string
          example: FIFO
          description: The cost method
        userId:
          type: number
          example: 1
          description: The user ID who created the category
        createdAt:
          format: date-time
          type: string
          example: '2024-03-20T10:00:00Z'
          description: The creation date of the category
        updatedAt:
          format: date-time
          type: string
          example: '2024-03-20T10:00:00Z'
          description: The last update date of the category
        count:
          type: number
          example: 5
          description: The number of items in this category
      required:
        - id
        - name
        - userId
        - createdAt
        - updatedAt
        - count

````