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

# List active cost categories

> Returns the company's active main categories and subcategories under active parents.



## OpenAPI

````yaml /openapi/openapi.json get /company/costCenters
openapi: 3.1.0
info:
  title: OpenAPI
  version: '1.0'
  summary: OpenApi
  contact:
    name: Altera Support
    url: https://altera.co
    email: wsparcie@altera.co
  description: ''
  license:
    url: https://altera.co/regulamin
    name: Terms of services for Altera.app
servers:
  - url: https://api.altera.co
    description: Production endpoint (proxied)
security:
  - Authorization: []
tags:
  - name: Configuration
  - name: Data export
  - name: Expenses
  - name: Sales
paths:
  /company/costCenters:
    get:
      tags:
        - Configuration
      summary: List active cost categories
      description: >-
        Returns the company's active main categories and subcategories under
        active parents.
      operationId: listActiveCostCenters
      responses:
        '200':
          description: Active cost categories, including an empty list when none exist.
          content:
            application/json:
              schema:
                type: object
                required:
                  - result
                  - data
                properties:
                  result:
                    type: string
                    enum:
                      - OK
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ActiveCostCenter'
        '401':
          $ref: '#/components/responses/OpenApiAuthorizationRequired'
        '403':
          $ref: '#/components/responses/OpenApiAccessDenied'
components:
  schemas:
    ActiveCostCenter:
      type: object
      required:
        - tagId
        - name
        - parentId
      properties:
        tagId:
          type: integer
          minimum: 1
        name:
          type: string
        parentId:
          type:
            - integer
            - 'null'
          minimum: 1
  responses:
    OpenApiAuthorizationRequired:
      description: >-
        The Authorization header is missing, or a verified key has expired
        (KEY_EXPIRED).
    OpenApiAccessDenied:
      description: The API key is invalid or the company does not have OpenAPI access.
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.