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

# Car Reparation Pricing

> Estimate repair costs from vehicle and damage information.

[MCP tool](/guides/mcp): `carhub_pricing_repair`.

<p data-carhub-endpoint="pricing.repair">[See current public price](/guides/credits-and-plans).</p>

<div data-carhub-availability="pricing.repair" hidden>
<Note><span data-carhub-availability-text></span></Note>
</div>




## OpenAPI

````yaml openapi.yaml POST /v1/pricing/repair
openapi: 3.1.0
info:
  title: CarHub API
  version: 2026-11-15-contracts-2
  summary: Automotive inference endpoints with asynchronous jobs.
  description: >
    Submit inference requests with an organization API key. Media inputs use an
    ordered inputs array and endpoint options use params. Each result includes
    its recorded result_schema_version. Read GET /v1/endpoints for current
    availability and prices. See the inference conventions for geometry,
    analysis outcomes, retries, and per-input results.
  termsOfService: https://trycarhub.com/terms
  contact:
    name: CarHub API support
    url: https://docs.trycarhub.com
    email: api@trycarhub.com
  license:
    name: Proprietary
    identifier: LicenseRef-CarHub-Commercial
servers:
  - url: https://api.trycarhub.com
    description: Production (EU)
security:
  - ApiKeyAuth: []
tags:
  - name: Vehicle understanding
    description: Vehicle pose, identity, segmentation, and text extraction.
  - name: Damage and condition
    description: Damage detection, severity, tire inspection, and hotspots.
  - name: Parts
    description: Component recognition, segmentation, and decomposition.
  - name: Pricing
    description: Vehicle valuation and repair estimates.
  - name: Image production
    description: Image editing, backgrounds, plate artwork, spins, and video.
  - name: Jobs
    description: Asynchronous status, results, and history.
  - name: Uploads
    description: Reusable media inputs and storage management.
  - name: Outputs
    description: Generated files, current download access, and public sharing.
  - name: Assets
    description: Permanent artwork and custom backgrounds.
  - name: SDK licenses
    description: Signed SDK usage rights and public verification keys.
  - name: Catalog
    description: Endpoint availability, prices, and public plans.
externalDocs:
  description: CarHub developer documentation
  url: https://docs.trycarhub.com
paths:
  /v1/pricing/repair:
    post:
      tags:
        - Pricing
      summary: Car Reparation Pricing
      description: >
        Estimate repair costs from vehicle and damage information.


        [MCP tool](/guides/mcp): `carhub_pricing_repair`.


        <p data-carhub-endpoint="pricing.repair">[See current public
        price](/guides/credits-and-plans).</p>


        <div data-carhub-availability="pricing.repair" hidden>

        <Note><span data-carhub-availability-text></span></Note>

        </div>
      operationId: priceRepair
      parameters:
        - $ref: '#/components/parameters/Wait'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/TestScenario'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              additionalProperties:
                type: string
                format: binary
              required:
                - params
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 0
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/MultipartMediaInput'
                params:
                  $ref: '#/components/schemas/PricingRepairParams'
            encoding:
              inputs:
                contentType: application/json
              params:
                contentType: application/json
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - params
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 0
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/MediaInput'
                params:
                  $ref: '#/components/schemas/PricingRepairParams'
      responses:
        '200':
          description: Job completed synchronously (`wait=true`).
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingRepairJob'
        '202':
          description: Job accepted.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingRepairJob'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    Wait:
      name: wait
      in: query
      required: false
      description: >-
        Fast endpoints only. Returns `200` with the settled job within 30
        seconds, otherwise `202` while the job continues.
      schema:
        type: boolean
        default: false
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Submission key retained for 24 hours. The same key and payload replay
        the stored response. A different payload returns `409
        idempotency_key_reused`. Concurrent requests may return `409
        request_in_progress`.
      schema:
        type: string
        minLength: 1
        maxLength: 255
      examples:
        uuid:
          value: 8b1f1c2e-9d3a-4a51-9f0c-1c9a2f6d7b44
    TestScenario:
      name: X-Carhub-Test-Scenario
      in: header
      required: false
      description: >-
        Deterministic `chk_test_` scenario. Omit for the successful fixture.
        Values are `empty_result`, `low_confidence`, `model_error`, `slow`, and
        `insufficient_credits`. Known values without an endpoint fixture use the
        default result. Unknown values return `400 unknown_test_scenario`. Live
        and staging keys return `400 scenario_requires_test_key`. See
        /guides/test-mode.
      schema:
        type: string
        examples:
          - empty_result
          - low_confidence
          - model_error
          - slow
          - insufficient_credits
  schemas:
    PublicOutput:
      type: boolean
      default: false
      description: >-
        Keep the authenticated result indefinitely and publish all generated
        files until you unpublish the job. Available on real jobs.
    MultipartMediaInput:
      type: object
      additionalProperties: false
      required:
        - file
      properties:
        client_id:
          type: string
          minLength: 1
          maxLength: 128
        role:
          type: string
          maxLength: 64
        file:
          type: string
          minLength: 1
          maxLength: 128
    PricingRepairParams:
      type: object
      required:
        - assessments
      properties:
        labour_rate:
          $ref: '#/components/schemas/NonnegativeMoney'
        currency:
          type: string
          pattern: ^[A-Z]{3}$
        country:
          type: string
          pattern: ^[A-Z]{2}$
        tax_rate_pct:
          type: number
          minimum: 0
          description: Tax rate to apply. Omitted, the estimate is returned untaxed.
        vehicle:
          oneOf:
            - $ref: '#/components/schemas/VehicleHint'
            - type: 'null'
        parts_source:
          type: string
          description: Which parts catalog to price from.
          enum:
            - oem
            - aftermarket
            - cheapest
          default: oem
        assessments:
          type: array
          description: '`damage.severity` assessments. An empty list gives a zero estimate.'
          minItems: 0
          maxItems: 50
          items:
            $ref: '#/components/schemas/DamageAssessment'
      additionalProperties: false
    MediaInput:
      type: object
      additionalProperties: false
      required:
        - ref
      properties:
        client_id:
          type: string
          minLength: 1
          maxLength: 128
        role:
          type: string
          maxLength: 64
        ref:
          $ref: '#/components/schemas/UploadRef'
    PricingRepairJob:
      allOf:
        - $ref: '#/components/schemas/Job'
        - type: object
          properties:
            result:
              oneOf:
                - $ref: '#/components/schemas/PricingRepairResult'
                - type: 'null'
    NonnegativeMoney:
      type: object
      title: Money
      description: A nonnegative integer amount in the minor unit of its ISO 4217 currency.
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          examples:
            - 149900
          minimum: 0
        currency:
          type: string
          description: ISO 4217, uppercase.
          pattern: ^[A-Z]{3}$
          examples:
            - EUR
    VehicleHint:
      type: object
      description: Known vehicle details. All fields are optional.
      properties:
        make:
          type: string
        model:
          type: string
        version:
          type: string
        year:
          type: integer
        mileage_km:
          type: integer
          minimum: 0
        fuel:
          type: string
          enum:
            - petrol
            - diesel
            - hybrid
            - plug_in_hybrid
            - electric
            - lpg
            - other
        gearbox:
          type: string
          enum:
            - manual
            - automatic
        vin:
          type: string
        plate:
          type: string
    DamageAssessment:
      type: object
      required:
        - damage_id
        - part
        - severity
        - severity_score
        - recommended_action
        - operations
        - labour_hours
        - paint_required
        - confidence
      properties:
        damage_id:
          type: string
          description: Echo of the submitted detection id.
          examples:
            - dmg_1
        part:
          oneOf:
            - $ref: '#/components/schemas/PartRef'
            - type: 'null'
        severity:
          type: string
          enum:
            - minor
            - moderate
            - severe
        severity_score:
          type: number
          minimum: 0
          maximum: 1
          description: Continuous grade behind the label, for your own thresholds.
        recommended_action:
          type: string
          description: >-
            `smart_repair` means localized paintless or partial-panel repair.
            `monitor` means no action warranted.
          enum:
            - none
            - monitor
            - polish
            - smart_repair
            - repair
            - replace
        operations:
          type: array
          description: Workshop operations implied by the recommended action.
          items:
            type: string
            enum:
              - remove_refit
              - straighten
              - fill
              - sand
              - prime
              - paint
              - blend
              - replace
              - polish
              - glass_replace
        labour_hours:
          type: number
          minimum: 0
          description: Estimated labour for this damage, in hours.
          examples:
            - 1.5
        paint_required:
          type: boolean
        confidence:
          $ref: '#/components/schemas/Confidence'
    UploadRef:
      type: string
      description: Reference returned by `POST /v1/uploads`.
      pattern: ^upl_[1-9A-HJ-NP-Za-km-z]{8,32}$
      examples:
        - upl_7Qm2hV9tXbLd
    Job:
      type: object
      title: Job
      description: >-
        Asynchronous job returned by submissions, `GET /v1/jobs/{id}`, and
        webhooks. `succeeded` or `partial` jobs may include results.
        `result_schema_version` identifies the result contract.
      required:
        - id
        - object
        - endpoint
        - status
        - livemode
        - is_staging
        - created
        - started_at
        - completed_at
        - model_version
        - credits
        - result
        - error
        - result_schema_version
      properties:
        is_staging:
          type: boolean
          default: false
          description: Requires live mode. Uses the organization's shared live credits.
        id:
          $ref: '#/components/schemas/JobIdString'
        object:
          type: string
          const: job
        endpoint:
          $ref: '#/components/schemas/EndpointSlug'
        status:
          $ref: '#/components/schemas/JobStatus'
        livemode:
          type: boolean
          description: '`false` for `chk_test_` jobs using fixture results and test credits.'
        public_output:
          type: boolean
          default: false
          description: >-
            Whether the job retains its result indefinitely and publishes its
            generated files.
        created:
          $ref: '#/components/schemas/Timestamp'
        started_at:
          description: When the job left the queue. Null while `queued`.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        completed_at:
          description: When the job settled. Null until then.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        model_version:
          type:
            - string
            - 'null'
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*@[0-9]{4}-[0-9]{2}-[0-9]{2}$
          description: >-
            CarHub endpoint name followed by @ and its release date in
            YYYY-MM-DD format. Null until a version is available for the job.
          examples:
            - image-customizer@2026-11-16
        credits:
          $ref: '#/components/schemas/JobCredits'
        result:
          description: >-
            Endpoint payload, null until results exist. The scheduled retention
            cleanup clears expired private results. Public jobs keep their
            results until unpublished. Media availability and URL expiry are
            separate. Shape follows the endpoint's `200` and `202` schemas.
          oneOf:
            - type: object
            - type: 'null'
        error:
          description: Populated when `status` is `failed` or `expired`, null otherwise.
          oneOf:
            - $ref: '#/components/schemas/JobError'
            - type: 'null'
        test_scenario:
          type: string
          description: >-
            `X-Carhub-Test-Scenario` used for this test job. Absent for live
            jobs and jobs without the header.
          examples:
            - low_confidence
        result_schema_version:
          type: integer
          enum:
            - 1
            - 2
          description: Public result schema revision recorded when the job was admitted.
    PricingRepairResult:
      type: object
      title: pricing.repair result
      description: >-
        Itemized repair estimate at the workshop hourly rate, with separate
        parts, labor, and paint totals for DMS accounting.
      required:
        - currency
        - labour_rate
        - lines
        - total_labour_hours
        - parts_total
        - labour_total
        - paint_total
        - subtotal
        - tax
        - total
        - confidence
        - analysis
        - inputs
      properties:
        currency:
          type: string
          pattern: ^[A-Z]{3}$
        labour_rate:
          allOf:
            - $ref: '#/components/schemas/NonnegativeMoney'
          description: Hourly rate the estimate was computed with.
        lines:
          type: array
          description: One entry per operation, in repair order.
          items:
            $ref: '#/components/schemas/RepairLine'
        total_labour_hours:
          type: number
          minimum: 0
        parts_total:
          $ref: '#/components/schemas/NonnegativeMoney'
        labour_total:
          $ref: '#/components/schemas/NonnegativeMoney'
        paint_total:
          $ref: '#/components/schemas/NonnegativeMoney'
        subtotal:
          allOf:
            - $ref: '#/components/schemas/NonnegativeMoney'
          description: Parts plus labour plus paint, before tax.
        tax:
          description: >-
            Tax amount. Null if no rate is supplied. CarHub does not infer
            rates.
          oneOf:
            - $ref: '#/components/schemas/TaxLine'
            - type: 'null'
        total:
          allOf:
            - $ref: '#/components/schemas/NonnegativeMoney'
          description: '`subtotal` plus tax when present, equal to `subtotal` otherwise.'
        confidence:
          description: >-
            Estimate confidence. Null for an empty estimate, whose zero cost is
            exact.
          oneOf:
            - $ref: '#/components/schemas/Confidence'
            - type: 'null'
        analysis:
          $ref: '#/components/schemas/Analysis'
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/ResultInput'
    ErrorResponse:
      type: object
      title: Error response
      description: Error envelope for every non-2xx response.
      required:
        - error
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/Error'
    PartRef:
      type: object
      description: A part, by code and display label.
      required:
        - code
        - label
      properties:
        code:
          $ref: '#/components/schemas/PartCode'
        label:
          type: string
          description: English display name.
          examples:
            - Front bumper
    Confidence:
      type: number
      description: >-
        Observation confidence, 0 to 1. Scores are not calibrated across
        analyses.
      minimum: 0
      maximum: 1
      examples:
        - 0.94
    JobIdString:
      type: string
      description: Job identifier, `job_` followed by a base58 string.
      pattern: ^job_[1-9A-HJ-NP-Za-km-z]{8,32}$
      examples:
        - job_3ZxK9pQr7TnW
    EndpointSlug:
      type: string
      description: Dotted endpoint identifier used in jobs and usage.
      enum:
        - vehicle.pose
        - vehicle.segment
        - vehicle.identify
        - vin.read
        - driver_license.read
        - plate.read
        - document.read
        - dashboard.read
        - engine.detect
        - damage.detect
        - damage.severity
        - tire.read
        - tire.detect
        - parts.recognize
        - parts.segment
        - parts.decompose
        - pricing.vehicle
        - pricing.repair
        - carhub.background
        - render.background
        - render.customize
        - render.enhance
        - render.plate
        - render.360
        - render.video
        - render.hotspots
    JobStatus:
      type: string
      description: >-
        `queued` then `processing`, then terminal `succeeded`, `partial`, or
        `failed`. `expired` means not started in time. `canceled` means canceled
        before starting. Both are terminal.
      enum:
        - queued
        - processing
        - succeeded
        - partial
        - failed
        - expired
        - canceled
    Timestamp:
      type: integer
      format: int64
      description: Epoch seconds, UTC.
      examples:
        - 1755300000
    JobCredits:
      type: object
      description: >-
        Job credits. 1,000 credits equal USD 1. `reserved` is held at admission.
        `charged` is the settled cost. Unused credits are released.
      required:
        - reserved
        - charged
      properties:
        extras:
          type: array
          description: >-
            Applied extras with prices fixed at admission. Empty when no extra
            applies.
          items:
            $ref: '#/components/schemas/AppliedExtra'
        reserved:
          type: integer
          minimum: 0
          examples:
            - 20
        charged:
          type:
            - integer
            - 'null'
          minimum: 0
          description: Null while the job is unsettled.
          examples:
            - 20
    JobError:
      type: object
      description: Why a job settled in `failed` or `expired`.
      required:
        - type
        - code
        - message
        - retryable
        - param
      properties:
        type:
          type: string
          enum:
            - processing_error
            - invalid_request
            - internal
        code:
          type: string
          examples:
            - model_inference_failed
            - unreadable_input
            - upstream_timeout
            - job_expired
        message:
          type: string
        retryable:
          type: boolean
        param:
          type:
            - string
            - 'null'
    RepairLine:
      type: object
      required:
        - part
        - operation
        - parts_cost
        - labour_hours
        - labour_cost
        - paint_cost
        - subtotal
        - confidence
        - id
        - source_damage_ids
      properties:
        part:
          oneOf:
            - $ref: '#/components/schemas/PartRef'
            - type: 'null'
        operation:
          type: string
          enum:
            - repair
            - replace
            - paint
            - smart_repair
            - blend
            - remove_refit
            - polish
            - glass_replace
        parts_cost:
          $ref: '#/components/schemas/NonnegativeMoney'
        labour_hours:
          type: number
          minimum: 0
        labour_cost:
          $ref: '#/components/schemas/NonnegativeMoney'
        paint_cost:
          $ref: '#/components/schemas/NonnegativeMoney'
        subtotal:
          $ref: '#/components/schemas/NonnegativeMoney'
        confidence:
          $ref: '#/components/schemas/Confidence'
        id:
          type: string
          minLength: 1
        source_damage_ids:
          type: array
          uniqueItems: true
          items:
            type: string
            minLength: 1
    TaxLine:
      type: object
      required:
        - rate_pct
        - amount
      properties:
        rate_pct:
          type: number
          minimum: 0
          examples:
            - 20
        amount:
          $ref: '#/components/schemas/NonnegativeMoney'
    Analysis:
      type: object
      additionalProperties: false
      required:
        - status
        - reason_codes
      properties:
        status:
          type: string
          enum:
            - analyzed
            - not_found
            - unreadable
            - ambiguous
            - unassessable
            - not_applicable
            - not_requested
        reason_codes:
          type: array
          uniqueItems: true
          items:
            type: string
            minLength: 1
    ResultInput:
      type: object
      additionalProperties: false
      required:
        - input_index
        - client_id
        - role
      properties:
        input_index:
          type: integer
          minimum: 0
        client_id:
          type:
            - string
            - 'null'
        role:
          type:
            - string
            - 'null'
        width:
          type: integer
          minimum: 1
        height:
          type: integer
          minimum: 1
    Error:
      type: object
      required:
        - type
        - code
        - message
        - param
        - doc_url
        - request_id
        - retryable
      properties:
        type:
          type: string
          description: Failure category for handling errors without matching codes.
          enum:
            - invalid_request
            - authentication
            - permission
            - rate_limit
            - insufficient_credits
            - not_found
            - conflict
            - processing_error
            - internal
        code:
          type: string
          description: >-
            Stable identifier within `type`. Handle unknown codes by their
            `type`.
          examples:
            - missing_input
            - invalid_api_key
            - rate_limit_exceeded
        message:
          type: string
          description: English log-safe message. Never localized or intended for end users.
        param:
          type:
            - string
            - 'null'
          description: Field or header responsible for the error, if known.
        doc_url:
          type: string
          format: uri
          description: Documentation page for this exact code.
          examples:
            - https://docs.trycarhub.com/errors/missing_input
        request_id:
          type: string
          description: Failing request identifier, also in `X-Request-Id`.
          examples:
            - req_2Kd8xQmPvL4T
        quota_bytes:
          type: integer
          description: Organization storage limit for `storage_quota_exceeded`.
        stored_bytes:
          type: integer
        reserved_bytes:
          type: integer
        available_bytes:
          type: integer
        requested_bytes:
          type: integer
        oldest_deletable_ref:
          type: string
        oldest_deletable_at:
          type: string
          format: date-time
        retryable:
          type: boolean
    PartCode:
      type: string
      description: >-
        Stable part identifier shared across endpoints. Snake case with side
        suffixes, such as `door_front_left`. Accept unknown codes as opaque
        identifiers.
      examples:
        - front_bumper
        - rear_bumper
        - bonnet
        - tailgate
        - roof
        - windscreen
        - grille
        - door_front_left
        - door_rear_right
        - wing_front_left
        - quarter_panel_rear_right
        - headlight_left
        - taillight_right
        - mirror_left
        - wheel_front_left
        - sill_left
        - dashboard
        - seat_front_left
    AppliedExtra:
      type: object
      required:
        - code
        - label
        - price_minor
        - billing_unit
        - reserved_quantity
        - charged_quantity
      properties:
        code:
          type: string
        label:
          type: string
        price_minor:
          type: integer
          minimum: 0
        billing_unit:
          type: string
          enum:
            - request
            - image
        reserved_quantity:
          type: integer
          minimum: 0
        charged_quantity:
          type: integer
          minimum: 0
        requires_paid_organization:
          type: boolean
          default: false
  headers:
    RequestId:
      description: Request identifier to include in support requests.
      schema:
        type: string
        examples:
          - req_2Kd8xQmPvL4T
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
        examples:
          - 12
  responses:
    BadRequest:
      description: >-
        Invalid request or JSON, missing or oversized file, unknown parameter,
        or unsupported `wait=true`.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingInput:
              summary: No input supplied
              value:
                error:
                  type: invalid_request
                  code: missing_input
                  message: >-
                    Provide the required inputs array with uploaded references
                    or named multipart files.
                  param: inputs
                  doc_url: https://docs.trycarhub.com/errors/missing_input
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
            waitUnsupported:
              summary: wait=true on a long-running endpoint
              value:
                error:
                  type: invalid_request
                  code: wait_not_supported
                  message: >-
                    This endpoint is long-running; poll the job or use a webhook
                    instead.
                  param: wait
                  doc_url: https://docs.trycarhub.com/errors/wait_not_supported
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    Unauthorized:
      description: Missing, malformed, revoked or expired credential.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalidKey:
              value:
                error:
                  type: authentication
                  code: invalid_api_key
                  message: The provided API key is invalid or has been revoked.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/invalid_api_key
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    InsufficientCredits:
      description: >-
        Insufficient credits. No job created. Add live credits or recharge the
        test balance in dashboard Billing before retrying.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            emptyCreditBalances:
              value:
                error:
                  type: insufficient_credits
                  code: insufficient_credits
                  message: Credit balance is 3 credits; this call reserves 8.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/insufficient_credits
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    Forbidden:
      description: >-
        Missing key permission or organization endpoint access, another
        organization's resource, or paid_organization_required when selected
        options require a non-trial plan or confirmed live payment. No job is
        created for paid_organization_required.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            outOfScope:
              value:
                error:
                  type: permission
                  code: scope_not_granted
                  message: This API key is not scoped for the `render` endpoint family.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/scope_not_granted
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    NotFound:
      description: No such resource, or it is not visible to this credential.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unknownJob:
              value:
                error:
                  type: not_found
                  code: resource_not_found
                  message: No job with id `job_3ZxK9pQr7TnW`.
                  param: id
                  doc_url: https://docs.trycarhub.com/errors/resource_not_found
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    Conflict:
      description: >-
        Conflicting resource state, idempotency payload, or input reservation
        above the organization storage quota.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            idempotencyReuse:
              value:
                error:
                  type: conflict
                  code: idempotency_key_reused
                  message: >-
                    This Idempotency-Key was already used with a different
                    request body.
                  param: Idempotency-Key
                  doc_url: https://docs.trycarhub.com/errors/idempotency_key_reused
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    RateLimited:
      description: Too many requests for this endpoint and plan. Back off and retry.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            tooFast:
              value:
                error:
                  type: rate_limit
                  code: rate_limit_exceeded
                  message: >-
                    Rate limit of 120 requests per minute exceeded for
                    `plate.read`.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/rate_limit_exceeded
                  request_id: req_2Kd8xQmPvL4T
                  retryable: true
    InternalError:
      description: >-
        Internal error. No charge. Retry with the same `Idempotency-Key`.
        Include `request_id` if the error persists.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                error:
                  type: internal
                  code: internal_error
                  message: An unexpected error occurred.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/internal_error
                  request_id: req_2Kd8xQmPvL4T
                  retryable: true
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: CarHub API key
      description: >
        Send `Authorization: Bearer YOUR_API_KEY`.

        Use `chk_test_` for fixture results and test credits, `chk_stg_` for
        staging,

        and `chk_live_` for production. Production and staging share live
        credits.

        Keys require explicit operation permissions. Store secrets on your
        backend.

````

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