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

# Get a scratch pipeline's result

> Page through the rows a scratch-destination pipeline run produced. Paging reads the stored result and never re-runs the source. Only scratch pipelines have a result. `limit` is clamped server-side to the inline cap, so the next page starts at `offset + returnedCount`, never `offset + limit`. Results expire after the retention window.



## OpenAPI

````yaml /openapi.yaml get /api/v1/pipeline/result
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/pipeline/result:
    get:
      tags:
        - Status
      summary: Get a scratch pipeline's result
      description: >-
        Page through the rows a scratch-destination pipeline run produced.
        Paging reads the stored result and never re-runs the source. Only
        scratch pipelines have a result. `limit` is clamped server-side to the
        inline cap, so the next page starts at `offset + returnedCount`, never
        `offset + limit`. Results expire after the retention window.
      parameters:
        - name: pipelinetoken
          in: query
          schema:
            type: string
          description: >-
            Pipeline token of one ingestion job. Exactly one of pipelinetoken or
            publishertoken is required.
        - name: publishertoken
          in: query
          schema:
            type: string
          description: >-
            Publisher token from a tap run — resolves to the scratch job that
            run submitted.
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
          description: Row offset to start from.
        - name: limit
          in: query
          schema:
            type: integer
          description: >-
            Rows requested for this page; clamped server-side to the inline cap.
            Read returnedCount for what actually came back.
      responses:
        '200':
          description: One page of the result
          content:
            application/json:
              schema:
                type: object
                properties:
                  records:
                    type: array
                    items:
                      type: object
                    description: This page's rows, one object per row
                  rowCount:
                    type: integer
                    description: Total rows in the whole result
                  returnedCount:
                    type: integer
                    description: Rows on this page
                  offset:
                    type: integer
                  truncated:
                    type: boolean
                    description: True when more rows follow at offset + returnedCount
                  resultUri:
                    type: string
                  resultExpiresAt:
                    type: string
                    description: When the result is deleted
        '400':
          description: offset or limit is not an integer
        '404':
          description: >-
            No run matched the token, or the pipeline is not a scratch pipeline
            — only scratch pipelines have a result
        '410':
          description: The result has expired; run the pipeline again
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````