---
title: "Get job type stats"
method: GET
path: "/v1/job-templates/{templateId}/stats"
tags: ["Job types"]
---

# Get job type stats

`GET /v1/job-templates/{templateId}/stats`

## Request

- Base URL: `https://api.workwing.io`
- URL: `https://api.workwing.io/v1/job-templates/{templateId}/stats`
- Auth: HTTP bearer

Get a job type with usage statistics including job counts by status

## Path parameters

- `templateId` string, uuid, required

## Response `200`

Default Response

- object
  - `data` object, required
    - `id` string, uuid, required
    - `brand_id` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `default_priority` string, nullable, required: One of T_LOW, T_NORMAL, T_HIGH, T_URGENT.
    - `estimated_duration_minutes` integer, nullable, required
    - `is_active` boolean, nullable, required
    - `version` integer, required
    - `allow_extra_parts` boolean, required: Whether engineers can add parts to this job type's jobs from the mobile app.
    - `job_sheet_auto_send` boolean, required: Whether the customer is emailed the job sheet PDF automatically on completion
    - `job_sheet_fields` object, required: Per-field overrides of what the job sheet shows. Keys are `operator:<fieldKey>` or `resource:<fieldKey>`, naming the form (office or engineer) and the field's key in it; values are true to include the field and false to leave it out. A field with no key here follows the default: engineer (resource) form fields are included, office (operator) form fields are not.
    - `operator_form_config` unknown, required
    - `resource_form_config` unknown, required
    - `quickview_fields` unknown, required
    - `sla_config` unknown, required
    - `created_by_user_id` string, uuid, nullable, required
    - `created_at` string, date-time, nullable, required
    - `updated_at` string, date-time, nullable, required
    - `stats` object, required
      - `total_jobs` integer, required
      - `active_jobs` integer, required: Jobs in any status that is not completed, cancelled or failed.
      - `completed_jobs` integer, required
      - `cancelled_jobs` integer, required
      - `failed_jobs` integer, required
  - `meta` object, required
    - `request_id` string, required
    - `timestamp` string, date-time, required

---

[API](https://skmtc.dev/workwing/apis/workwing-api.md) · [All operations](https://skmtc.dev/workwing/apis/workwing-api/llms.txt) · [OpenAPI document](https://skmtc.dev/workwing/apis/workwing-api/revisions/54bb14368a35?raw)
