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

# TRA portal health

> Check whether the upstream TRA calculator is currently reachable. Cached in memory for 60 seconds.



## OpenAPI

````yaml /openapi.json get /v1/tra-status
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/tra-status:
    get:
      summary: TRA portal health
      description: >-
        Check whether the upstream TRA calculator is currently reachable. Cached
        in memory for 60 seconds.
      operationId: traStatus
      responses:
        '200':
          description: TRA portal status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    TraStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - up
            - down
        latencyMs:
          type: integer
        checkedAt:
          type: string
          format: date-time
        cached:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  responses:
    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.

````