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

# Request OTP for Issuing Policy

> This endpoint sends a one-time password (OTP). It should be called before issuing a policy.



## OpenAPI

````yaml /car-api-reference/openapi.json post /issue-otp
openapi: 3.0.1
info:
  title: OpenAPI For Motor Insurance
  description: API's that you need to use to issue insurance policies to your clients
  license:
    name: MIT
  version: 1.0.0
servers:
  - x-fern-server-name: Sandbox
    url: https://sandbox.yasmina.ai/api/v1/car-comp
  - x-fern-server-name: Production
    url: https://production.yasmina.ai/api/v1/car-comp
security:
  - Oauth2: []
paths:
  /issue-otp:
    post:
      tags:
        - OTPs
      summary: Request OTP for Issuing Policy
      description: >-
        This endpoint sends a one-time password (OTP). It should be called
        before issuing a policy.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                  example: someone@example.com
                  description: Email address of the car owner
                phone:
                  type: string
                  pattern: ^05\d{8}$
                  example: '0501234567'
                  description: Phone number starting with 05 and containing 10 digits
                owner_id:
                  type: string
                  pattern: ^(1|2|7)\d{9}$
                  example: '1012345678'
                  description: National ID or Iqama ID of the car owner (10 digits)
                quote_request_id:
                  type: integer
                  description: ID of the car quote request
                  example: 123
                quote_reference_id:
                  type: string
                  format: uuid
                  description: >-
                    Unique identifier for the quote reference ID (coming from
                    POST /quote-requests)
                  example: 550e8400-e29b-41d4-a716-446655440000
                quote_price_id:
                  type: string
                  format: uuid
                  description: >-
                    Unique identifier for the quote price ID that exists inside
                    a quote item (coming from POST /quote-requests)
                  example: 550e8400-e29b-41d4-a716-446655440001
              required:
                - email
                - phone
                - owner_id
                - quote_request_id
                - quote_reference_id
                - quote_price_id
      responses:
        '204':
          description: OTP sent successfully
          content: {}
        '400':
          description: Invalid request or missing parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '40000'
                  message:
                    type: string
                    example: Mobile is registered with different ID number
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: '40101'
              message:
                type: string
                example: Unauthenticated
  securitySchemes:
    Oauth2:
      description: JWT Authorization header using the Bearer scheme
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          scopes: {}

````