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

# Unpublish a job

> Restore the organization's retention period for this job, measured from completion, and revoke public access to all its generated files. Requires `storage:write` and job visibility through `jobs:read` or `jobs:read:own`. You can retry this request. Cached public files may remain accessible during propagation.




## OpenAPI

````yaml openapi.yaml DELETE /v1/jobs/{id}/public
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/jobs/{id}/public:
    delete:
      tags:
        - Jobs
      summary: Unpublish a job
      description: >
        Restore the organization's retention period for this job, measured from
        completion, and revoke public access to all its generated files.
        Requires `storage:write` and job visibility through `jobs:read` or
        `jobs:read:own`. You can retry this request. Cached public files may
        remain accessible during propagation.
      operationId: unpublishJob
      parameters:
        - $ref: '#/components/parameters/JobId'
      responses:
        '202':
          description: Media revocation is pending.
        '204':
          description: The job is private and no media revocation is pending.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    JobId:
      name: id
      in: path
      required: true
      description: Job identifier.
      schema:
        $ref: '#/components/schemas/JobIdString'
  responses:
    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
    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
    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
  schemas:
    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
    ErrorResponse:
      type: object
      title: Error response
      description: Error envelope for every non-2xx response.
      required:
        - error
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/Error'
    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
  headers:
    RequestId:
      description: Request identifier to include in support requests.
      schema:
        type: string
        examples:
          - req_2Kd8xQmPvL4T
  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.