Skip to main content
POST
/
issue-otp
Request OTP for Issuing Policy
curl --request POST \
  --url https://staging.yasmina.ai/api/v1/car-comp/issue-otp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "[email protected]",
  "phone": "0501234567",
  "owner_id": "1012345678",
  "quote_request_id": 123,
  "quote_reference_id": "550e8400-e29b-41d4-a716-446655440000",
  "quote_price_id": "550e8400-e29b-41d4-a716-446655440001"
}'
This response has no body data.

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Body

application/json
email
string<email>
required

Email address of the car owner

phone
string
required

Phone number starting with 05 and containing 10 digits

Example:

"0501234567"

owner_id
string
required

National ID or Iqama ID of the car owner (10 digits)

Example:

"1012345678"

quote_request_id
integer
required

ID of the car quote request

Example:

123

quote_reference_id
string<uuid>
required

Unique identifier for the quote reference ID (coming from POST /quote-requests)

Example:

"550e8400-e29b-41d4-a716-446655440000"

quote_price_id
string<uuid>
required

Unique identifier for the quote price ID that exists inside a quote item (coming from POST /quote-requests)

Example:

"550e8400-e29b-41d4-a716-446655440001"