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

# Get run details

> Returns the current status, progress, and results for a slice run. Use this to poll an in-progress run — check `suggestedPollAfterSeconds` for the recommended wait time.

When `status` is `completed`, the `result` field contains structured output conforming to the slice's output schema.

**Related:** [Get run evidence](/api-reference/slice-runs/get-run-evidence) · [Search evidence](/api-reference/slice-runs/search-evidence)


<Tip>Watch the `phase` field for granular progress: `queued` → `gathering_evidence` → `analyzing_calls` → `synthesizing` → `completed`. Show this to users if building a progress UI.</Tip>


## OpenAPI

````yaml /api/openapi.yaml get /api/public/v1/slice-runs/{id}
openapi: 3.1.0
info:
  title: OnePerfectSlice API
  version: 1.0.0
  description: |
    Programmatic access to OnePerfectSlice. Authenticate with a team-scoped
    API key (Bearer sk_...) obtained from Org Settings → API Keys.
servers:
  - url: https://app.oneperfectslice.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /api/public/v1/slice-runs/{id}:
    get:
      tags:
        - Slice Runs
      summary: Get run details
      description: >
        Returns the current status, progress, and results for a slice run. Use
        this to poll an in-progress run — check `suggestedPollAfterSeconds` for
        the recommended wait time.


        When `status` is `completed`, the `result` field contains structured
        output conforming to the slice's output schema.


        **Related:** [Get run
        evidence](/api-reference/slice-runs/get-run-evidence) · [Search
        evidence](/api-reference/slice-runs/search-evidence)
      operationId: getSliceRun
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            format: int64
          description: Run ID
      responses:
        '200':
          description: Run detail
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/SliceRunDetail'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Run not found or belongs to different org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: RUN_NOT_FOUND
                  message: Run not found
        '503':
          description: Run lookup request timed out
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: RUN_LOOKUP_TIMEOUT
                  message: Run lookup request timed out
      security:
        - bearerAuth: []
components:
  schemas:
    SliceRunDetail:
      type: object
      required:
        - id
        - sliceKey
        - sliceTitle
        - status
        - phase
        - callsAnalyzed
        - filters
        - startedAt
      properties:
        id:
          type: integer
          format: int64
          example: 12345
        sliceKey:
          type: string
          example: high_intent_deals
        sliceTitle:
          type: string
          example: High-Intent Deals
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
          example: completed
        phase:
          type: string
          enum:
            - queued
            - gathering_evidence
            - analyzing_calls
            - synthesizing
            - completed
            - failed
          description: >-
            Current execution phase — use this for more granular progress
            tracking than `status`
          example: analyzing_calls
        matchedCallCount:
          type: integer
          nullable: true
          description: >-
            Total calls matching filters (null while the run is still in
            progress)
          example: 87
        callsAnalyzed:
          type: integer
          description: Number of calls analyzed so far
          example: 42
        filters:
          type: object
          description: Filters that were applied for this run
          additionalProperties: true
        result:
          type: object
          nullable: true
          description: >-
            Structured result conforming to the slice's outputSchema (null until
            completed)
          additionalProperties: true
        error:
          type: string
          nullable: true
          description: Error message if run failed (null unless status is "failed")
        suggestedPollAfterSeconds:
          type: integer
          nullable: true
          description: Suggested delay before polling the run again
          example: 15
        progressMessage:
          type: string
          nullable: true
          description: Human-readable progress guidance for in-flight runs
          example: Run is analyzing matched calls.
        startedAt:
          type: string
          format: date-time
          example: '2026-04-26T14:30:00Z'
        completedAt:
          type: string
          format: date-time
          nullable: true
          example: '2026-04-26T14:32:18Z'
    ApiError:
      type: object
      description: Standard error envelope for all public API error responses
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable UPPER_SNAKE_CASE error code
              example: INVALID_TOKEN
            message:
              type: string
              description: Human-readable error description
              example: Token is invalid
            details:
              type: object
              description: Optional additional error context
              additionalProperties: true
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            missingToken:
              value:
                error:
                  code: MISSING_TOKEN
                  message: Authorization header with Bearer token is required
            invalidToken:
              value:
                error:
                  code: INVALID_TOKEN
                  message: Token is invalid
            tokenRevoked:
              value:
                error:
                  code: TOKEN_REVOKED
                  message: Token has been revoked
            tokenExpired:
              value:
                error:
                  code: TOKEN_EXPIRED
                  message: Token has expired
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with sk_ prefix. Create one in Org Settings → API Keys.
      x-default: sk_your_api_key

````