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

# Bulk Analyze Transaction

> Uploads a bulk set of transactions for fraud analysis.



## OpenAPI

````yaml POST /fraud-detection/bulk
openapi: 3.0.1
info:
  title: InsightAI Fraud Detection API
  description: >-
    APIs for fraud detection, prevention, bulk processing, and initial customer
    data load.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.insightai.in/
security:
  - bearerAuth: []
paths:
  /fraud-detection/bulk:
    post:
      description: Uploads a bulk set of transactions for fraud analysis.
      requestBody:
        description: A file containing multiple transactions in CSV or JSON format.
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/BulkUploadRequest'
        required: true
      responses:
        '200':
          description: Bulk fraud detection response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDetectionResponse'
        '400':
          description: Invalid bulk upload request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BulkUploadRequest:
      type: object
      properties:
        file:
          type: string
          format: binary
          description: CSV or JSON file containing multiple transactions.
    BulkDetectionResponse:
      type: object
      properties:
        caseId:
          type: string
          description: String Id to represent the case analysis of the bulk transaction
        processedCount:
          type: integer
          description: Number of transactions successfully processed.
        fraudulentCount:
          type: integer
          description: Number of transactions flagged as fraudulent.
        analyticsJson:
          type: object
          description: JSON of all the transaction flagged and score for each
        details:
          type: array
          items:
            $ref: '#/components/schemas/FraudDetectionResponse'
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message describing the issue.
    FraudDetectionResponse:
      type: object
      properties:
        status:
          type: string
          description: Status of the fraud detection process.
        isFraudulent:
          type: boolean
          description: Indicates whether the transaction is flagged as fraudulent.
        details:
          type: string
          description: Detailed explanation of the fraud detection result.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````