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

# Publisher run detail (a call to one of my apps)

> One call to an app I publish, same whitelisted shape as the list
plus the run's structured warnings (e.g. billing-qty-missing).
Ownership is by **app**: a run of someone else's app and a
nonexistent run_id both return 404. There is no `input`, no result
data and no caller identity here — and this run_id does not open
under GET /runs/{run_id} unless you also started it.



## OpenAPI

````yaml /jp/datahub/api/openapi.json get /v1/publisher/runs/{run_id}
openapi: 3.1.0
info:
  title: DataHub API
  version: 0.2.0
  description: Public /v1 contract of Octoparse DataHub. Internal channels are excluded.
servers:
  - url: https://api-datahub.octoparse.com
security:
  - bearerAuth: []
tags:
  - name: Discovery
    description: >-
      Anonymous access: platform metadata (currency), data app search, detail
      and input contract, machine-readable manifest spec.
  - name: Publishing
    description: >-
      Self-service publishing channel (API Key auth), two-phase: validate first
      (validate / package, nothing persisted), then publish (POST /data-apps,
      the submission goes live as a new Release). api kind (declarative
      integration) becomes visible on publish; code kind (code package) returns
      202 and enters an async image build; once ready it is promoted to a
      Release, visible and runnable. Poll progress via GET
      /data-apps/{ref}/builds.
  - name: Runs & Results
    description: >-
      Start / query / cancel runs and read result records with pagination.
      Business inputs go in the request body; platform run options (wait,
      max_records) go in query parameters.
  - name: Datasets
    description: >-
      Metadata and record access for platform datasets (including seeded stock
      data).
  - name: Account
    description: Account info and cumulative usage for the current API Key.
  - name: Secrets
    description: >-
      CRUD for upstream credentials (environment entries referenced by manifest
      `runtime.env`). Plaintext is write-only: every read returns a mask.
paths:
  /v1/publisher/runs/{run_id}:
    get:
      tags:
        - Publishing
      summary: Publisher run detail (a call to one of my apps)
      description: |-
        One call to an app I publish, same whitelisted shape as the list
        plus the run's structured warnings (e.g. billing-qty-missing).
        Ownership is by **app**: a run of someone else's app and a
        nonexistent run_id both return 404. There is no `input`, no result
        data and no caller identity here — and this run_id does not open
        under GET /runs/{run_id} unless you also started it.
      operationId: publisher_run_v1_publisher_runs__run_id__get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataEnvelope_PublisherRunDetail_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DataEnvelope_PublisherRunDetail_:
      properties:
        data:
          $ref: '#/components/schemas/PublisherRunDetail'
      type: object
      required:
        - data
      title: DataEnvelope[PublisherRunDetail]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublisherRunDetail:
      properties:
        run_id:
          type: string
          title: Run Id
        namespace:
          anyOf:
            - type: string
            - type: 'null'
          title: Namespace
        app_name:
          type: string
          title: App Name
          default: ''
        app_version:
          anyOf:
            - type: string
            - type: 'null'
          title: App Version
        build_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Build Id
          description: >-
            Build snapshot a debug run (run_kind=test) was pinned to; null for
            production runs
        run_kind:
          type: string
          title: Run Kind
          default: production
        state:
          $ref: '#/components/schemas/RunState'
        partial:
          type: boolean
          title: Partial
          default: false
        triggered_by:
          type: string
          title: Triggered By
          default: api
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Finished At
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
        records:
          type: integer
          title: Records
          default: 0
        amount:
          type: number
          title: Amount
          default: 0
        error:
          anyOf:
            - $ref: '#/components/schemas/PublisherRunError'
            - type: 'null'
        warnings:
          items:
            $ref: '#/components/schemas/RunWarning'
          type: array
          title: Warnings
      type: object
      required:
        - run_id
        - state
      title: PublisherRunDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    RunState:
      type: string
      enum:
        - PENDING
        - QUEUED
        - RUNNING
        - SUCCEEDED
        - PARTIALLY_SUCCEEDED
        - FAILED
        - CANCELLED
        - EXPIRED
      title: RunState
    PublisherRunError:
      properties:
        code:
          type: string
          title: Code
        category:
          type: string
          title: Category
          default: internal
        message:
          type: string
          title: Message
          default: ''
        retryable:
          type: boolean
          title: Retryable
          default: false
      type: object
      required:
        - code
      title: PublisherRunError
      description: |-
        Why a run failed, as the publisher may see it: code, category, the
        message and whether the caller could retry. Field-level `details` of
        input validation and retry hints stay with the caller.
    RunWarning:
      properties:
        code:
          type: string
          title: Code
        event:
          type: string
          title: Event
          default: ''
        detail:
          additionalProperties: true
          type: object
          title: Detail
        count:
          type: integer
          title: Count
          default: 0
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - code
      title: RunWarning
      description: |-
        Structured run-level warning (e.g. billing-qty-missing: the quantity
        field is missing, non-numeric, or negative, so it is charged as 0).
        Surfaced only in the single-run detail, never in lists.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: DataHub API Key

````