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

# Workflow Status Overview

> Provides workflow meta, totals, stage breakdown, window hours, SMS summary, and recent SMS for a workflow.

### Example Response

```json theme={null}
{
  "workflow": { "id": "197c3300-bcd5-4c0b-a8ad-535b3abbdeb0", "name": "3-day SMS Workflow" },
  "totals": { "enrolled": 205, "paused": 5, "eligibleNow": 0, "queued": 200, "noNextStage": 5 },
  "stages": [ { "stageName": "SMS 2", "count": 200 } ],
  "windowHours": 24,
  "smsSummary": { "Delivered": 200 },
  "recentSms": [
    {
      "id": "msg_...",
      "phone_number": "+15555998608",
      "debtor_id": "9115e0de-01e2-416a-8b0c-4d46d9b6c032",
      "content": "templateId:48 message:Hello {debtorName}...",
      "created_at": "2025-09-08T20:16:01.608Z",
      "status": "Delivered"
    }
  ]
}
```


## OpenAPI

````yaml GET /status/workflow/{workflowId}
openapi: 3.0.1
info:
  title: CollectWise API
  description: >-
    An API for managing debtors, tracking statuses, and automating debt
    collection processes
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://collectwiseapi.com
security:
  - apiKey: []
paths:
  /status/workflow/{workflowId}:
    get:
      summary: Workflow status overview
      description: >-
        Provides workflow meta, totals, stage breakdown, window hours, SMS
        summary, and recent SMS for a workflow.
      parameters:
        - name: workflowId
          in: path
          required: true
          description: Unique identifier of the workflow
          schema:
            type: string
        - name: hours
          in: query
          required: false
          description: Lookback window in hours. Defaults to 24; clamped to [1, 8760].
          schema:
            type: integer
            minimum: 1
            maximum: 8760
            default: 24
        - name: date
          in: query
          required: false
          description: >-
            Specific UTC day in YYYY-MM-DD format; when provided, supersedes the
            hours window.
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
      responses:
        '200':
          description: Workflow status overview returned
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Workflow not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Upstream/internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
          description: Error code
        message:
          type: string
          description: Error message
      example:
        code: 400
        message: 'Invalid input: debtorName is required'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: collectwise_key

````