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

# Actions



## OpenAPI

````yaml get /api/analytics/actions-per-workflow
openapi: 3.1.0
info:
  title: Axion Backend API
  description: Backend API for Axion platform with desktop automation capabilities
  version: 1.0.0
servers:
  - url: https://api.getgranite.ai
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security: []
tags:
  - name: Authentication
    description: User authentication and session management
  - name: Organizations
    description: Organization management and membership
  - name: Health
    description: API health and status monitoring
  - name: Automations
    description: Automation planning and execution
  - name: MIG
    description: Managed Instance Group operations
  - name: Agent
    description: Agent execution and streaming
  - name: Onboarding
    description: Organization onboarding flow
  - name: Organization Automations
    description: Organization automation endpoint management
  - name: Organization Endpoints
    description: Public endpoints for organization automations
  - name: Analytics
    description: Analytics and reporting endpoints
paths:
  /api/analytics/actions-per-workflow:
    get:
      tags:
        - Analytics
      summary: Get action counts per workflow
      operationId: getActionsPerWorkflow
      parameters:
        - name: start_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Start Date
        - name: end_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: End Date
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 50
            minimum: 1
            default: 10
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionsPerWorkflowResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ActionsPerWorkflowResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/WorkflowActionsItem'
          type: array
          title: Data
      type: object
      required:
        - data
      title: ActionsPerWorkflowResponse
      description: Response for actions per workflow.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowActionsItem:
      properties:
        workflow_name:
          type: string
          title: Workflow Name
        clicks:
          type: integer
          title: Clicks
          default: 0
        keystrokes:
          type: integer
          title: Keystrokes
          default: 0
        scrolls:
          type: integer
          title: Scrolls
          default: 0
        screenshots:
          type: integer
          title: Screenshots
          default: 0
        total_steps:
          type: integer
          title: Total Steps
          default: 0
      type: object
      required:
        - workflow_name
      title: WorkflowActionsItem
      description: Workflow action breakdown.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````