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

# List companies

> To list all the companies that you've created



## OpenAPI

````yaml /medical-api-reference/openapi.json get /companies
openapi: 3.0.1
info:
  title: OpenAPI For SME Medical Insurance
  description: API's that you need to use to request insurance(s) for your clients
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://production.yasmina.ai/api/v1/medical
  - url: https://sandbox.yasmina.ai/api/v1/medical
security:
  - bearerAuth: []
paths:
  /companies:
    get:
      tags:
        - Company
      summary: List companies
      description: To list all the companies that you've created
      responses:
        '200':
          description: A list of companies
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Company'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Company:
      type: object
      properties:
        name:
          type: string
        name_ar:
          type: string
        sponsor_number:
          type: string
        email_address:
          type: string
        phone_number:
          type: string
        commercial_registration_number:
          type: string
        client_id:
          type: string
        updated_at:
          type: string
        created_at:
          type: string
        id:
          type: integer
      example:
        name: Example company name
        name_ar: مثال اسم شركة
        sponsor_number: '789'
        email_address: example@example.com
        phone_number: '+966512345678'
        commercial_registration_number: '9876543210'
        client_id: a1b2c3d4-5678-90ab-cdef-1234567890ab
        updated_at: '2025-08-01T14:22:30.000000Z'
        created_at: '2025-08-01T14:22:30.000000Z'
        id: 42
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: '40101'
              message:
                type: string
                example: Unauthenticated
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````