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

# Workflow run activity histogram by status

> Dense histogram over a rolling window (default 7 days), bucketed by time and run status. Admins see org-wide counts; members see only their own runs. Empty buckets are filled with zeros.



## OpenAPI

````yaml post /api/workflows/runs/activity-timeline
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/workflows/runs/activity-timeline:
    post:
      tags:
        - Workflows
      summary: Workflow run activity histogram by status
      description: >-
        Dense histogram over a rolling window (default 7 days), bucketed by time
        and run status. Admins see org-wide counts; members see only their own
        runs. Empty buckets are filled with zeros.
      operationId: workflow_runs_activity_timeline
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowRunActivityTimelineRequest'
              default:
                hours: 168
                bucket_minutes: 60
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunActivityTimelineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    WorkflowRunActivityTimelineRequest:
      properties:
        hours:
          type: integer
          minimum: 1
          maximum: 168
          default: 168
          title: Hours
          description: Rolling window in hours (default 7d, max 7d).
        bucket_minutes:
          type: integer
          minimum: 1
          maximum: 60
          default: 60
          title: Bucket Minutes
          description: Histogram bin width in minutes.
      type: object
      title: WorkflowRunActivityTimelineRequest
    WorkflowRunActivityTimelineResponse:
      type: object
      title: WorkflowRunActivityTimelineResponse
      properties:
        start:
          type: string
          format: date-time
        end:
          type: string
          format: date-time
        bucket_minutes:
          type: integer
        series:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowRunActivityTimelineBucket'
      required:
        - start
        - end
        - bucket_minutes
        - series
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowRunActivityTimelineBucket:
      type: object
      title: WorkflowRunActivityTimelineBucket
      properties:
        t:
          type: string
          format: date-time
          description: Bucket start (UTC)
        succeeded:
          type: integer
          default: 0
        failed:
          type: integer
          default: 0
        waiting_human:
          type: integer
          default: 0
        waiting_auth:
          type: integer
          default: 0
        rejected:
          type: integer
          default: 0
        other:
          type: integer
          default: 0
      required:
        - t
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````