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

# Summarise an auction condition report

> Fetch a Japanese auction inspection sheet (image or PDF) and return a structured, sectioned summary. The `url` must point to a supported auction-site host. Cached per URL (and per language).



## OpenAPI

````yaml /openapi.json post /v1/condition-report
openapi: 3.1.0
info:
  title: Kopagari Import Tax API
  version: 1.0.0
  description: >-
    Estimate Tanzania Revenue Authority (TRA) import duties and full drive-away
    costs for used Japanese vehicles, straight from an auction-site listing URL.


    Give the API a listing URL (BeForward, SBT Japan, SBI/Enhance Auto, or any
    site exposing schema.org data) and it scrapes the vehicle, matches it
    against the TRA vehicle database, calls the official TRA calculator, and
    returns the duty breakdown.


    **Geo-restriction:** the upstream TRA calculator only answers requests from
    Tanzanian IP addresses, so this API must be reached through its production
    host (which is deployed on Tanzanian infrastructure).
servers:
  - url: https://import.kopagari.com
    description: Production
security:
  - bearerAuth: []
  - apiKeyHeader: []
paths:
  /v1/condition-report:
    post:
      summary: Summarise an auction condition report
      description: >-
        Fetch a Japanese auction inspection sheet (image or PDF) and return a
        structured, sectioned summary. The `url` must point to a supported
        auction-site host. Cached per URL (and per language).
      operationId: conditionReport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConditionReportRequest'
            example:
              url: https://www.beforward.jp/.../condition_sheet.jpg
              lang: en
      responses:
        '200':
          description: Condition report summary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConditionReportResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          description: The report could not be fetched or processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ConditionReportRequest:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          description: Inspection-sheet URL on a supported auction-site host.
        lang:
          type: string
          enum:
            - en
            - sw
          default: en
          description: >-
            Summary language. `sw` returns Swahili (with English section
            headings).
    ConditionReportResponse:
      type: object
      properties:
        summary:
          type: string
          description: >-
            Markdown summary with sections like ## Grade, ## Exterior, ##
            Mechanical, etc.
        cached:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  responses:
    BadRequest:
      description: Invalid or missing parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid or missing API key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send your API key as `Authorization: Bearer <key>`.'
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternatively, send your API key in the `x-api-key` header.

````