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

# Get run counts

> Run counts and the last run for up to 100 workflows, as shown in the **Runs** and **Last run** columns on the Automations page. Workflows you can't see, or that have never run, come back with zero counts.




## OpenAPI

````yaml /openapi/automations.yaml get /workflows/run-stats
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /workflows/run-stats:
    get:
      tags:
        - Runs
      summary: Get run counts
      description: >
        Run counts and the last run for up to 100 workflows, as shown in the
        **Runs** and **Last run** columns on the Automations page. Workflows you
        can't see, or that have never run, come back with zero counts.
      operationId: getWorkflowRunStats
      parameters:
        - name: ids
          in: query
          required: true
          description: Comma-separated workflow ids. Only the first 100 are used.
          schema:
            type: string
      responses:
        '200':
          description: Stats keyed by workflow id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stats:
                    type: object
                    additionalProperties:
                      type: object
                      properties:
                        runCount:
                          type: integer
                        uniqueRowCount:
                          type: integer
                        lastRun:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        lastRunStatus:
                          type:
                            - string
                            - 'null'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: The request is invalid (code `VALIDATION_ERROR`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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