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

# Get All Companies

> Get all companies (admin only).



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/companies/
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/companies/:
    get:
      tags:
        - Companies
      summary: Get All Companies
      description: Get all companies (admin only).
      operationId: get_all_companies_api_v1_companies__get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/CompanyWithMembersSchema'
                type: array
                title: Response Get All Companies Api V1 Companies  Get
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    CompanyWithMembersSchema:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: The name of the company
        id:
          type: integer
          title: The ID of the company
        date_added:
          type: string
          format: date-time
          title: The date the company was added
        date_updated:
          type: string
          format: date-time
          title: The date the company was updated
        memberships:
          items:
            $ref: '#/components/schemas/CompanyMembershipSchema'
          type: array
          title: The company memberships
          default: []
      type: object
      required:
        - name
        - id
        - date_added
        - date_updated
      title: CompanyWithMembersSchema
      description: The schema for a company with its members.
    CompanyMembershipSchema:
      properties:
        id:
          type: integer
          title: The ID of the membership
        user_id:
          type: integer
          title: The ID of the user
        company_id:
          type: integer
          title: The ID of the company
        date_added:
          type: string
          format: date-time
          title: The date the membership was added
      type: object
      required:
        - id
        - user_id
        - company_id
        - date_added
      title: CompanyMembershipSchema
      description: The schema for a company membership.
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````