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

# Resolve a stamped run id to its origin

> Walks a `_datris_run_id` back through the chain run → job status → tap run → script commit → pipeline config version → declared source and returns one document. Pass the row's `_datris_tap_run` and `_datris_config_version` values when available for exact resolution.



## OpenAPI

````yaml /openapi.yaml get /api/v1/provenance
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.28.0
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/provenance:
    get:
      tags:
        - Provenance
      summary: Resolve a stamped run id to its origin
      description: >-
        Walks a `_datris_run_id` back through the chain run → job status → tap
        run → script commit → pipeline config version → declared source and
        returns one document. Pass the row's `_datris_tap_run` and
        `_datris_config_version` values when available for exact resolution.
      parameters:
        - in: query
          name: runId
          required: true
          schema:
            type: string
          description: The `_datris_run_id` value (the pipeline run token)
        - in: query
          name: pipeline
          schema:
            type: string
          description: Pipeline name, if known
        - in: query
          name: tapRun
          schema:
            type: string
          description: The `_datris_tap_run` value, if present
        - in: query
          name: configVersion
          schema:
            type: integer
          description: The `_datris_config_version` value, if present
      responses:
        '200':
          description: The resolved provenance chain
          content:
            application/json:
              schema:
                type: object
                properties:
                  runId:
                    type: string
                  pipeline:
                    type: string
                  job:
                    type: object
                  tapRun:
                    type: object
                  tap:
                    type: object
                  configVersion:
                    type: object
                  source:
                    type: string
        '400':
          description: runId missing
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````