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

# Issue policies



## OpenAPI

````yaml /medical-api-reference/openapi.json post /request-policies
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:
  /request-policies:
    post:
      tags:
        - Policies
      summary: Issue policies
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                insured:
                  type: array
                  items:
                    $ref: '#/components/schemas/Insured'
                company_id:
                  type: integer
                  description: >-
                    One of the company ids that were created from the company
                    API
      responses:
        '201':
          description: Policies requested
          content: {}
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Problem in the values that you submitted
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    default: 42201
                  message:
                    type: string
                  details:
                    type: object
                    example:
                      insured.1.number_of_dependents:
                        - >-
                          The insured.1.number_of_dependents field cannot be
                          empty.
components:
  schemas:
    Insured:
      type: object
      properties:
        name:
          type: string
        nationality_iso:
          type: string
        category:
          type: string
          description: group
          enum:
            - basic
            - economy
            - standard
            - classic
            - advance
            - premier
            - executive
            - elite
        nationality_id:
          type: string
          description: For Saudi's
        iqama_id:
          type: string
          description: For Non-Saudi's
        number_of_dependents:
          type: number
        date_of_birth:
          type: string
      required:
        - name
        - nationality_iso
        - category
        - date_of_birth
        - number_of_dependents
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````