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

# List and search callable Plays

> Lists saved and prebuilt Plays available to the authenticated workspace. Use search or grep to narrow by capability before starting a run.

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

## Errors

| Status | Meaning |
| - | - |
| 401 | 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/plays
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/plays:
    get:
      tags:
        - Plays
      summary: List and search callable Plays
      description: >-
        Lists saved and prebuilt Plays available to the authenticated workspace.
        Use search or grep to narrow by capability before starting a run.
      operationId: listPlays
      parameters:
        - name: summary_only
          in: query
          required: false
          description: >-
            Load compact metadata without source or revisions. Cost and category
            requests still load the data they require.
          schema:
            type: string
            enum:
              - '1'
        - name: search
          in: query
          required: false
          description: Text to match against callable Play metadata and contracts.
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Maximum Plays to return.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        '200':
          description: A successful Runtime API response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlayCatalog'
        '401':
          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:
    PlayCatalog:
      type: object
      properties:
        plays:
          type: array
          items:
            $ref: '#/components/schemas/Play'
      additionalProperties: true
    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
    Play:
      type: object
      properties:
        name:
          type: string
        reference:
          type: string
        displayName:
          type: string
        description:
          type:
            - string
            - 'null'
        origin:
          type: string
        ownerType:
          type: string
        scope:
          type: string
        inputSchema:
          type:
            - object
            - 'null'
          description: The selected Play’s input schema.
          additionalProperties: true
        outputSchema:
          type:
            - object
            - 'null'
          description: The selected Play’s output schema.
          additionalProperties: true
        currentRevision:
          type:
            - object
            - 'null'
          additionalProperties: true
        liveRevision:
          type:
            - object
            - 'null'
          additionalProperties: true
        canEdit:
          type: boolean
        canClone:
          type: boolean
      required:
        - name
  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.