---
title: "Get count of Issues"
method: POST
path: "/tasks/v1/incidents/list/count"
tags: ["Issues"]
---

# Get count of Issues

`POST /tasks/v1/incidents/list/count`

## Request body

- S12TasksV1GetIncidentsRequest — GetIncidentsRequest represents the parameters to `GetIncidents`.
  - `page_size` integer — Optional. Number of issues to be returned in a single request. This must be a value between 1 and 100, any values outside of this range will be ignored. The presence of `next_page_token` in the response indicates that more results might be available.
  - `page_token` string — Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters should be identical to those in the previous call. This can be used to retrieve more than 100 issues with multiple API calls. For example: 'ODFBMzQ3MDYtNzQxNy00RDZGLThDNjE1MEFDMkM4MTQ3NDQ='
  - `sort_field` 'SORT_FIELD_UNKNOWN' | 'PRIORITY' | 'DATE_DUE' | 'CREATED_AT' | 'MODIFIED_AT' | 'OCCURRED_AT' — The options available to sort the issues by. By default, the issues will be returned by the date they were last modified in descending order. This should be used in combination with `SortDirection` to determine how issues are sorted. If either `SortField` or `SortDirection` is missing, the default sort order will be used. - SORT_FIELD_UNKNOWN: `SORT_FIELD_UNKNOWN` will return the default sort order. - PRIORITY: `PRIORITY` will sort the issues by incident priority. - DATE_DUE: `DATE_DUE` will sort the issues by due date. - CREATED_AT: `CREATED_AT` will sort the issues by the date they were created. - MODIFIED_AT: `MODIFIED_AT` will sort the issues by the date they were last modified. - OCCURRED_AT: `OCCURRED_AT` will sort the issues by the date they occurred at.
  - `sort_direction` 'SORT_DIRECTION_UNKNOWN' | 'ASC' | 'DESC' — The options available to define the sort direction. - SORT_DIRECTION_UNKNOWN: `SORT_DIRECTION_UNKNOWN` will return the default sort direction. - ASC: `ASC` will return the sorted issues in ascending order. - DESC: `DESC` will return the sorted issues in descending order.
  - `filters` S12TasksV1GetIncidentsRequestFilter[] — Optional. An array of filters can be provided in the request to filter the issues.
    - `status_id` S12TasksV1GetIncidentsRequestFilterStatusID — Will return issues that have a matching status. An issue can be open or resolved, and these are represented by hardcoded UUID values. Open status: `547ed646-5e34-4732-bb54-a199d304368a`. Resolved status: `450484b1-56cd-4784-9b49-a3cf97d0c0ad`.
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — The ID of the status.
    - `priority_id` S12TasksV1GetIncidentsRequestFilterPriorityID — Will return issues that have a matching priority. The priority of an issue can be one of four options: none, low, medium or high. Each of these are represented by a hardcoded UUID value. No priority: `58941717-817f-4c7c-a6f6-5cd05e2bbfde`. Low priority: `16ba4717-adc9-4d48-bf7c-044cfe0d2727`. Medium priority: `ce87c58a-eeb2-4fde-9dc4-c6e85f1f4055`. High priority: `02eb40c1-4f46-40c5-be16-d32941c96ec9`.
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — The ID of the priority.
    - `category_id` S12TasksV1GetIncidentsRequestFilterCategoryID — Will return issues that have a matching category.
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — The ID of the category.
    - `site_id` S12TasksV1GetIncidentsRequestFilterSiteID — Will return issues that have a matching site.
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — The ID of the site.
    - `assignee_id` S12TasksV1GetIncidentsRequestFilterAssigneeID — Will return issues where the user ID of the assignee matches the provided value.
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — The user ID of the assignee.
    - `creator_id` S12TasksV1GetIncidentsRequestFilterCreatorID — Will return issues where the user ID of the creator matches the provided value.
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — The user ID of the creator.
    - `title` S12TasksV1GetIncidentsRequestFilterSearch — Will return issues where the title and/or description contain the search term.
      - `term` string — `term` represents the text to search for.
    - `description` S12TasksV1GetIncidentsRequestFilterSearch — Will return issues where the title and/or description contain the search term.
      - `term` string — `term` represents the text to search for.
    - `task_id` S12TasksV1GetIncidentsRequestFilterTaskID
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — OR relation, represents the task_id should be one of the value provided
    - `due_at` S12TasksV1GetIncidentsRequestFilterDuration
      - `from` string, date-time — optional. represents the time should be after the time provided
      - `to` string, date-time — optional. represents the time should be before the time provided
    - `created_at` S12TasksV1GetIncidentsRequestFilterDuration
      - `from` string, date-time — optional. represents the time should be after the time provided
      - `to` string, date-time — optional. represents the time should be before the time provided
    - `occurred_at` S12TasksV1GetIncidentsRequestFilterDuration
      - `from` string, date-time — optional. represents the time should be after the time provided
      - `to` string, date-time — optional. represents the time should be before the time provided
    - `keyword` S12TasksV1GetIncidentsRequestFilterSearch — Will return issues where the title and/or description contain the search term.
      - `term` string — `term` represents the text to search for.
    - `modified_at` S12TasksV1GetIncidentsRequestFilterDuration
      - `from` string, date-time — optional. represents the time should be after the time provided
      - `to` string, date-time — optional. represents the time should be before the time provided
    - `completed_at` S12TasksV1GetIncidentsRequestFilterDuration
      - `from` string, date-time — optional. represents the time should be after the time provided
      - `to` string, date-time — optional. represents the time should be before the time provided
    - `asset_id` S12TasksV1GetIncidentsRequestFilterAssetID
      - `operator` 'FILTER_OPERATOR_UNKNOWN' | 'IN' — The options available when defining a filter. The only available option is `IN`. - FILTER_OPERATOR_UNKNOWN: `FILTER_OPERATOR_UNKNOWN` represents the default value for a filter operator, which is `IN`. - IN: `IN` returns results where the value is a direct match.
      - `value` string[] — OR relation, represents the asset_id should be one of the value provided

## Response `200`

A successful response.

- S12TasksV1GetIncidentsCountResponse
  - `total` integer — Total number of incidents

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/safetyculture/apis/safetyculture-api.md) · [All operations](https://skmtc.net/safetyculture/apis/safetyculture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/safetyculture/safetyculture-api/revisions/5be91df61ded/schema)
