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

# Search and page workspace run history

> Returns runs newest first. Search matches Play/workflow names, run IDs and statuses. Follow nextCursor while hasMore is true, including pages with no matching runs; only a completed search establishes that no matches exist.

Authentication: workspace API key in `Authorization: Bearer <key>`.

## Errors

| Status | Meaning |
| - | - |
| 400 | The request conflicts with current state or a retained request identity. |
| 401 | The request conflicts with current state or a retained request identity. |
| 403 | The request conflicts with current state or a retained request identity. |
| 500 | The request conflicts with current state or a retained request identity. |


## OpenAPI

````yaml openapi.json GET /api/v2/dashboard/runs-history
openapi: 3.1.1
info:
  title: Deepline API
  version: v2
  description: >-
    Discover typed GTM tools and callable Plays, then execute a tool or start
    and inspect a durable Deepline Play run. Use the MCP endpoint when your
    client supports Model Context Protocol.
  contact:
    name: Deepline support
    email: team@deepline.com
    url: https://deepline.com/contact
servers:
  - url: https://code.deepline.com
    description: Deepline production runtime API
security: []
tags:
  - name: Health
    description: Availability checks.
  - name: Billing
    description: Safe recovery of existing purchase intent.
  - name: Tools
    description: Discover and execute typed provider tools.
  - name: Plays
    description: Discover, start, and inspect durable Play runs.
externalDocs:
  description: API reference
  url: https://deepline.com/docs/api-reference
paths:
  /api/v2/dashboard/runs-history:
    get:
      tags:
        - Plays
      summary: Search and page workspace run history
      description: >-
        Returns runs newest first. Search matches Play/workflow names, run IDs
        and statuses. Follow nextCursor while hasMore is true, including pages
        with no matching runs; only a completed search establishes that no
        matches exist.
      operationId: getRunsHistory
      parameters:
        - name: search
          in: query
          required: false
          description: Case-insensitive substring, at most 200 characters.
          schema:
            type: string
            maxLength: 200
        - name: cursor
          in: query
          required: false
          description: Opaque continuation bound to the same workspace and search.
          schema:
            type: string
        - name: type
          in: query
          required: false
          description: >-
            Search all, Play or Monitor runs by recorded trigger metadata;
            requires search.
          schema:
            type: string
            enum:
              - all
              - plays
              - monitors
        - name: limit
          in: query
          required: false
          description: Maximum indexed history entries examined in this page.
          schema:
            type: integer
            minimum: 1
            maximum: 30
            default: 20
      responses:
        '200':
          description: A successful Runtime API response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  runs:
                    type: array
                    items:
                      type: object
                      properties:
                        runId:
                          type: string
                        workflowId:
                          type: string
                        workflowName:
                          type: string
                        playScope:
                          type:
                            - string
                            - 'null'
                        status:
                          type: string
                        createdAt:
                          type: number
                        updatedAt:
                          type: number
                        callerName:
                          type:
                            - string
                            - 'null'
                        callerEmail:
                          type:
                            - string
                            - 'null'
                        authorName:
                          type:
                            - string
                            - 'null'
                        authorEmail:
                          type:
                            - string
                            - 'null'
                        callerAgent:
                          type:
                            - string
                            - 'null'
                        executionMode:
                          type:
                            - string
                            - 'null'
                        bindingId:
                          type:
                            - string
                            - 'null'
                        parentWorkflowName:
                          type:
                            - string
                            - 'null'
                        outputRowCount:
                          type:
                            - number
                            - 'null'
                        hasOutput:
                          type: boolean
                        billingTotalCredits:
                          type: number
                        triggerSource:
                          type: string
                      required:
                        - runId
                        - workflowId
                        - workflowName
                        - status
                        - createdAt
                        - updatedAt
                  nextCursor:
                    type:
                      - string
                      - 'null'
                  hasMore:
                    type: boolean
                  avatarsByName:
                    type: object
                    additionalProperties:
                      type: string
                required:
                  - runs
                  - nextCursor
                  - hasMore
        '400':
          description: >-
            The request conflicts with current state or a retained request
            identity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Unauthorized
        '401':
          description: >-
            The request conflicts with current state or a retained request
            identity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Unauthorized
        '403':
          description: >-
            The request conflicts with current state or a retained request
            identity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Unauthorized
        '500':
          description: >-
            The request conflicts with current state or a retained request
            identity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Unauthorized
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          oneOf:
            - type: string
              description: Route-specific error message.
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                resolution:
                  type: string
              additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Deepline workspace API key
      description: >-
        Create a workspace API key in the Deepline dashboard before calling
        authenticated endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.