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

# Damage Detection

> Detect and associate exterior damage across vehicle photos. Return representative geometry and per-frame observations.

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

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

<Note>
<span data-carhub-availability="damage.detect" hidden></span>Send 1 to 30 photos of the same vehicle in chronological order. Damage IDs are stable only within this job.
</Note>




## OpenAPI

````yaml openapi.yaml POST /v1/damage/detect
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/damage/detect:
    post:
      tags:
        - Damage and condition
      summary: Damage Detection
      description: >
        Detect and associate exterior damage across vehicle photos. Return
        representative geometry and per-frame observations.


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


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


        <Note>

        <span data-carhub-availability="damage.detect" hidden></span>Send 1 to
        30 photos of the same vehicle in chronological order. Damage IDs are
        stable only within this job.

        </Note>
      operationId: detectDamage
      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:
                - inputs
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 1
                  maxItems: 30
                  items:
                    $ref: '#/components/schemas/MultipartMediaInput'
                params:
                  $ref: '#/components/schemas/DamageDetectParams'
            encoding:
              inputs:
                contentType: application/json
              params:
                contentType: application/json
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - inputs
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 1
                  maxItems: 30
                  items:
                    $ref: '#/components/schemas/MediaInput'
                params:
                  $ref: '#/components/schemas/DamageDetectParams'
      responses:
        '200':
          description: Job completed synchronously (`wait=true`).
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DamageDetectJob'
        '202':
          description: Job accepted.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DamageDetectJob'
        '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
    DamageDetectParams:
      type: object
      additionalProperties: false
      properties:
        min_confidence:
          type: number
          minimum: 0
          maximum: 1
          default: 0.85
        mask_format:
          $ref: '#/components/schemas/MaskFormatParam'
        attribute_parts:
          type: boolean
          default: true
          description: Attribute each damage to its component.
    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'
    DamageDetectJob:
      allOf:
        - $ref: '#/components/schemas/Job'
        - type: object
          properties:
            result:
              oneOf:
                - $ref: '#/components/schemas/DamageDetectResult'
                - type: 'null'
    MaskFormatParam:
      type: string
      description: Mask representation. `none` omits masks.
      enum:
        - polygon
        - rle_coco
        - none
      default: polygon
    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.
    DamageDetectResult:
      type: object
      title: damage.detect result
      description: >-
        Damage outlines and types. Grading is separate through `damages[]` in
        `/v1/damage/severity`.
      required:
        - image_count
        - images
        - damage_count
        - damages
        - observations
        - analysis
        - inputs
      properties:
        image_count:
          type: integer
          minimum: 1
          maximum: 30
        images:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/ImageSize'
              - type: object
                required:
                  - image_index
                properties:
                  image_index:
                    type: integer
                    minimum: 0
        damage_count:
          type: integer
          minimum: 0
        damages:
          type: array
          description: >-
            One entry per detection, most confident first. Empty when nothing
            was found.
          items:
            $ref: '#/components/schemas/Damage'
        observations:
          type: array
          description: Frame-specific observations ordered by image_index.
          items:
            $ref: '#/components/schemas/DamageObservation'
        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'
    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'
    ImageSize:
      type: object
      description: Dimensions of the EXIF-oriented source image.
      required:
        - width
        - height
      properties:
        width:
          type: integer
          minimum: 1
        height:
          type: integer
          minimum: 1
    Damage:
      type: object
      description: >-
        Detected damage with a job-local `id` used by severity and
        repair-pricing endpoints.
      required:
        - id
        - type
        - part
        - location
        - image_index
        - bbox
        - mask
        - area_ratio
        - confidence
      properties:
        id:
          type: string
          examples:
            - dmg_1
        type:
          type: string
          enum:
            - scratch
            - dent
            - crack
            - chip
            - miscellaneous
            - missing_part
            - broken_glass
            - tear
        part:
          description: >-
            Attributed component when part analysis ran on the same image. Null
            if attribution fails.
          oneOf:
            - $ref: '#/components/schemas/PartRef'
            - type: 'null'
        location:
          type: string
          enum:
            - exterior
            - interior
        image_index:
          type: integer
          minimum: 0
        bbox:
          $ref: '#/components/schemas/BBox'
        mask:
          description: Outline of the damage. Null when `mask_format` was `none`.
          oneOf:
            - $ref: '#/components/schemas/Mask'
            - type: 'null'
        area_ratio:
          type: number
          minimum: 0
          maximum: 1
          description: Share of the frame covered by the damage.
        confidence:
          $ref: '#/components/schemas/Confidence'
    DamageObservation:
      type: object
      required:
        - damage_id
        - image_index
        - part
        - bbox
        - mask
        - area_ratio
        - confidence
      properties:
        damage_id:
          type: string
          examples:
            - dmg_1
        image_index:
          type: integer
          minimum: 0
        part:
          oneOf:
            - $ref: '#/components/schemas/PartRef'
            - type: 'null'
        bbox:
          $ref: '#/components/schemas/BBox'
        mask:
          oneOf:
            - $ref: '#/components/schemas/Mask'
            - type: 'null'
        area_ratio:
          type: number
          minimum: 0
          maximum: 1
        confidence:
          $ref: '#/components/schemas/Confidence'
    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
    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
    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
    BBox:
      type: object
      title: Bounding box
      description: >-
        Axis-aligned pixel box in the EXIF-oriented source image. Origin is
        top-left.
      required:
        - x
        - 'y'
        - width
        - height
      properties:
        x:
          type: integer
          description: Left edge, in pixels.
        'y':
          type: integer
          description: Top edge, in pixels.
        width:
          type: integer
          minimum: 0
          description: Width, in pixels.
        height:
          type: integer
          minimum: 0
          description: Height, in pixels.
      examples:
        - x: 120
          'y': 340
          width: 180
          height: 48
    Mask:
      type: object
      additionalProperties: false
      required:
        - format
      properties:
        format:
          type: string
          enum:
            - polygon
            - rle_coco
        polygon:
          type: array
          description: Simplified outer contour as [x,y] vertices with implicit closure.
          minItems: 3
          items:
            type: array
            minItems: 2
            maxItems: 2
            items:
              type: integer
        rle:
          type: object
          description: COCO RLE. Present when `format` is `rle_coco`.
          required:
            - size
            - counts
          properties:
            size:
              type: array
              description: '`[height, width]` of the mask.'
              minItems: 2
              maxItems: 2
              items:
                type: integer
            counts:
              type: string
      description: >-
        Source-image mask. Polygon is a simplified outer contour with implicit
        closure. COCO RLE preserves the full raster, including holes and
        disconnected regions.
      oneOf:
        - properties:
            format:
              const: polygon
          required:
            - polygon
          not:
            required:
              - rle
        - properties:
            format:
              const: rle_coco
          required:
            - rle
          not:
            required:
              - polygon
    Confidence:
      type: number
      description: >-
        Observation confidence, 0 to 1. Scores are not calibrated across
        analyses.
      minimum: 0
      maximum: 1
      examples:
        - 0.94
    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
  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.