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

# Simulate client exposure

> Simulate client exposure. Access is subject to the permissions, authentication, and branch requirements documented for this operation.



## OpenAPI

````yaml /openapi/tenant-staff-v1.openapi.yaml post /simulator/exposure/simulate
openapi: 3.1.0
info:
  title: Anbyan Staff Session API
  version: 1.0.0
  description: >
    Human staff API authenticated with short-lived staff sessions. Login uses
    email and password, followed by MFA when required.
servers:
  - url: https://{tenantDomain}/api/v1/staff
    description: Staff session API on a tenant domain
    variables:
      tenantDomain:
        default: tenant.example.com
security:
  - bearerAuth: []
tags:
  - name: Auth
  - name: Ledger
  - name: Deposits
  - name: Withdrawals
  - name: Transfers
  - name: Vaults
  - name: Direct Deposits
  - name: Bank Migrations
  - name: Accounts
  - name: Account Products
  - name: Clients
  - name: Client Compliance
  - name: Product Applications
  - name: Card Programs
  - name: Card Design Sets
  - name: Cards
  - name: Dashboard
  - name: Simulator
  - name: Compliance Program
  - name: Staff
  - name: Incidents
  - name: Branches
  - name: Jurisdictions
  - name: Locations
  - name: Notifications
  - name: Settings
  - name: FX
  - name: Passbooks
  - name: Access Control
  - name: Users
  - name: Activity Logs
paths:
  /simulator/exposure/simulate:
    post:
      tags:
        - Simulator
      summary: Simulate client exposure
      description: >-
        Simulate client exposure. Access is subject to the permissions,
        authentication, and branch requirements documented for this operation.
      operationId: runExposureSimulation
      requestBody:
        $ref: '#/components/requestBodies/RunExposureSimulationRequest'
      responses:
        '200':
          $ref: '#/components/responses/RunExposureSimulationResponse'
components:
  requestBodies:
    RunExposureSimulationRequest:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RunExposureSimulationRequest'
  responses:
    RunExposureSimulationResponse:
      description: Exposure simulation result.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RunExposureSimulationResponse'
  schemas:
    RunExposureSimulationRequest:
      type: object
      required:
        - product_type
        - client_reference
        - currency
        - requested_amount_cents
        - monthly_income_cents
        - monthly_fixed_obligations_cents
        - employment_stability_band
      properties:
        product_type:
          type: string
          enum:
            - card_limit
            - loan_amount
        client_reference:
          type: string
        currency:
          type: string
        requested_amount_cents:
          type: integer
        requested_interest_rate:
          type: number
        funding_purpose:
          type: string
        property_value_amount_cents:
          type: integer
        down_payment_amount_cents:
          type: integer
        estimated_property_tax_amount_cents:
          type: integer
        estimated_home_insurance_amount_cents:
          type: integer
        estimated_private_mortgage_insurance_amount_cents:
          type: integer
        estimated_hoa_fees_amount_cents:
          type: integer
        tenor_months:
          type: integer
        account_product_id:
          type: string
        card_program_id:
          type: string
        monthly_income_cents:
          type: integer
        monthly_fixed_obligations_cents:
          type: integer
        employment_stability_band:
          type: string
          enum:
            - unstable
            - seasonal
            - stable
            - established
        risk_markers:
          type: array
          items:
            type: string
    RunExposureSimulationResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ExposureSimulation'
        meta:
          type: object
          properties:
            persisted:
              type: boolean
            simulationToken:
              type:
                - string
                - 'null'
            simulationExpiresAt:
              type:
                - string
                - 'null'
              format: date-time
    ExposureSimulation:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        clientId:
          type: string
        createdByUserId:
          type: string
        accountProductId:
          type:
            - string
            - 'null'
        cardProgramId:
          type:
            - string
            - 'null'
        productType:
          type: string
          enum:
            - card_limit
            - loan_amount
        currency:
          type: string
        requestedAmountCents:
          type: integer
        requestedInterestRate:
          type:
            - number
            - 'null'
        recommendedAmountCents:
          type: integer
        maxAmountCents:
          type: integer
        tenorMonths:
          type:
            - integer
            - 'null'
        decision:
          type: string
          enum:
            - approve
            - reduce
            - review
            - decline
        reasons:
          type: array
          items:
            type: string
        policySnapshot:
          $ref: '#/components/schemas/GenericObject'
        inputsSnapshot:
          $ref: '#/components/schemas/GenericObject'
        createdAt:
          type: string
          format: date-time
    GenericObject:
      type: object
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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