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

# List Corporates

> Returns the active corporates of the given branch, with their `_id` and `name`.



## OpenAPI

````yaml GET /client/crm/corporates
openapi: 3.0.3
info:
  title: Flabs CRM API
  version: 1.0.0
  description: >-
    Branches, corporates, tests, packages, and lead/booking ingestion for the
    Flabs CRM.
servers:
  - url: https://v2.flabs.in
    description: Production
security: []
paths:
  /client/crm/corporates:
    get:
      summary: List corporates in a branch
      description: >-
        Returns the active corporates of the given branch, with their `_id` and
        `name`.
      parameters:
        - in: query
          name: branchID
          required: true
          schema:
            type: string
          description: Branch identifier returned by `GET /client/labs`.
      responses:
        '200':
          description: Corporates returned
          content:
            application/json:
              schema:
                type: object
                properties:
                  corporates:
                    type: array
                    description: >-
                      Active corporates of the branch. An empty array if the
                      branch has none.
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                          description: Corporate identifier — pass this as `corporateUser`.
                        name:
                          type: string
                          description: Corporate name, as set up in the lab software.
              example:
                corporates:
                  - _id: 6530a4a6f1d2c8b7e9acorp1
                    name: Acme Technologies Pvt Ltd
                  - _id: 6530a4a6f1d2c8b7e9acorp2
                    name: Star Health Insurance
        4XX:
          $ref: '#/components/responses/ClientError'
        5XX:
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  responses:
    ClientError:
      description: Validation or auth error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            success: false
            status: 400
            message: Bad Request
            error:
              details: first_name is required
    ServerError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            success: false
            status: 500
            message: Internal Server Error
            error:
              details: An unexpected error occurred
  schemas:
    ErrorBody:
      type: object
      properties:
        success:
          type: boolean
          example: false
        status:
          type: integer
        message:
          type: string
        error:
          type: object
          properties:
            details:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT obtained from `POST /client/auth/token`.

````

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