---
updatedAt: 2026-05-27T10:25:03.000Z
agentTools:
  projectIndex: https://docs.v7labs.com/llms.txt
---

# Get Item counts by stages

Returns items counts (selected by provided filters) grouped by current workflow stages.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "DatasetsV2.Filters.AnnotationClassIdsContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.AnnotationClassIds"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemNameContains": {
        "description": "Partial item's name",
        "example": "item",
        "title": "DatasetsV2.Filters.ItemNameContains",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemNameContains",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemPath": {
        "description": "Item's path",
        "example": "/some/path",
        "title": "DatasetsV2.Filters.ItemPath",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemPath",
        "x-validate": null
      },
      "DatasetsV2.Filters.AnnotationClassId": {
        "description": "Item's class ID",
        "example": 123,
        "title": "DatasetsV2.Filters.AnnotationClassId",
        "type": "integer",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.AnnotationClassId",
        "x-validate": null
      },
      "DatasetsV2.Filters.WorkflowStageId": {
        "description": "Item's current workflow stage ID.",
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "DatasetsV2.Filters.WorkflowStageId",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.WorkflowStageId",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemName": {
        "description": "Item's name",
        "example": "my item",
        "title": "DatasetsV2.Filters.ItemName",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemName",
        "x-validate": null
      },
      "DatasetsV2.Filters.SelectAll": {
        "description": "For batch operation this filter has to be set to true if no other optional filter is provided.",
        "example": true,
        "title": "DatasetsV2.Filters.SelectAll",
        "type": "boolean",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.SelectAll",
        "x-validate": null
      },
      "DatasetsV2.Common.GeneralStatus": {
        "description": "General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.",
        "enum": [
          "error",
          "uploading",
          "processing",
          "archived",
          "new",
          "annotate",
          "review",
          "complete"
        ],
        "title": "DatasetsV2.Common.GeneralStatus",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Common.GeneralStatus",
        "x-validate": null
      },
      "DatasetsV2.Filters.HasComments": {
        "description": "Controls whether to include only items with/without comments",
        "example": false,
        "title": "DatasetsV2.Filters.HasComments",
        "type": "boolean",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.HasComments",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemNamePrefix": {
        "description": "Prefix of item's name",
        "example": "prefix_",
        "title": "DatasetsV2.Filters.ItemNamePrefix",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemNamePrefix",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemNames": {
        "oneOf": [
          {
            "description": "List of Item's name",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemName"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Item's name",
            "example": "my item,my item",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.ItemNames",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemNames",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemNamesContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNames"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "JsonErrorResponse": {
        "properties": {
          "errors": {
            "items": {
              "properties": {
                "detail": {
                  "example": "null value where string expected",
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                },
                "source": {
                  "properties": {
                    "pointer": {
                      "example": "/data/attributes/petName",
                      "type": "string",
                      "x-struct": null,
                      "x-validate": null
                    }
                  },
                  "required": [
                    "pointer"
                  ],
                  "type": "object",
                  "x-struct": null,
                  "x-validate": null
                },
                "title": {
                  "example": "Invalid value",
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                }
              },
              "required": [
                "title",
                "source",
                "detail"
              ],
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "errors"
        ],
        "title": "JsonErrorResponse",
        "type": "object",
        "x-struct": "Elixir.OpenApiSpex.JsonErrorResponse",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemPathsContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.ItemPaths"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.ItemManagement.StageCountsResponse": {
        "additionalProperties": false,
        "description": "Returns item counts for each unique stage of a workflow.",
        "properties": {
          "simple_counts": {
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.ItemManagement.SimpleStageCount"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "simple_counts"
        ],
        "title": "DatasetsV2.ItemManagement.StageCountsResponse",
        "type": "object",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.ItemManagement.StageCountsResponse",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemPaths": {
        "oneOf": [
          {
            "description": "List of Item's path",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemPath"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Item's path",
            "example": "/some/path,/some/path",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.ItemPaths",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemPaths",
        "x-validate": null
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "errors": {
            "properties": {
              "code": {
                "enum": [
                  "OUT_OF_ANNOTATION_CREDITS",
                  "NOT_ARCHIVED",
                  "ASSIGN_WORKFLOW_TEMPLATE_UNAVAILABLE",
                  "WORKFLOW_UPDATE_FAILURE",
                  "GATED_FEATURE_SSO_AND_SAML",
                  "UPLOAD_DISABLED",
                  "ITEM_REGISTRATION_LIMIT_EXCEEDED",
                  "SSO_REQUIRED",
                  "TOO_MANY_PENDING_EXPORTS",
                  "STORAGE_VALIDATION_FAILED",
                  "INVALID_ITEM_LAYOUT",
                  "WORKFLOW_ALREADY_COMPLETE",
                  "SUBSCRIPTION_INCOMPLETE_EXPIRED",
                  "UNIQUE_CONSTRAINT_VIOLATION",
                  "ITEM_IS_NOT_READY_FOR_ANNOTATIONS_IMPORT",
                  "NO_EXTERNAL_STORAGE_SET_FOR_TEAM",
                  "NO_DEFAULT_WORKFLOW",
                  "PLATFORM_TFA_ENFORCEMENT_LOCKED",
                  "STORAGE_LIMIT_REACHED",
                  "FEATURE_FLAG_DISABLED",
                  "MISSING_FILE_TYPE",
                  "DUPLICATED_FILE_SLOT",
                  "NO_AVAILABLE_WORK",
                  "MODIFYING_COMPLETE_STAGE",
                  "ENFORCING_SSO_BLOCKS_REGULAR_MEMBERSHIPS",
                  "INVALID_SAML_REQUEST",
                  "MISSING_PARAMETERS",
                  "INCORRECT_CLASS_USAGE",
                  "GROUND_TRUTH_NAME_DUPLICATE",
                  "NOT_AUTHENTICATED",
                  "TOO_MANY_ACTIVE_REPORT_JOBS",
                  "NOT_CURRENT_STAGE",
                  "INVALID_2FA_TOKEN",
                  "DATASET_IN_WORKFLOW",
                  "INCOMPATIBLE_STAGE_TYPE",
                  "TARGET_IN_DIFFERENT_DATASET",
                  "ASSIGN_ASSIGNMENT_INVALID",
                  "INVALID_ANNOTATION_DATA",
                  "OUT_OF_SEATS",
                  "STAGE_MISSING_ASSIGNEE",
                  "NO_ANNOTATIONS_ON_SOURCE_ITEM",
                  "REVIEW_STATUS_NOT_SET",
                  "NOT_FOUND",
                  "SUBSCRIPTION_PAST_DUE",
                  "EXTERNAL_STORAGE_LIMIT_REACHED",
                  "UNPROCESSED_VIDEO_REGISTRATION_DISABLED",
                  "GATED_FEATURE_TFA_ENFORCEMENT",
                  "NO_ACTIVE_WORKFLOW",
                  "USER_NOT_FOUND_FOR_ACTOR",
                  "GROUND_TRUTH_VERSIONING_NOT_SUPPORTED",
                  "CLASSES_USED_IN_WORKFLOW",
                  "DUPLICATED_OBJECT_REJECTED",
                  "SUBSCRIPTION_UNPAID",
                  "MULTIBITRATE_STREAM_NOT_AVAILABLE",
                  "TIMEOUT",
                  "TARGET_STAGE_NOT_CURRENT",
                  "BAD_REQUEST",
                  "MULTIPLE_SLOTS_IN_AS_FRAMES_MODE",
                  "INCLUDES_RASTER_LAYER",
                  "OUT_OF_SUBSCRIBED_STORAGE",
                  "REPORT_JOB_NOT_FINISHED",
                  "ASSIGN_ATTRIBUTES_INVALID",
                  "NOT_AUTHORIZED",
                  "SUBSCRIPTION_CANCELLED",
                  "DATASET_ERROR",
                  "STORAGE_NOT_FOUND",
                  "NO_WORKSPACES_AVAILABLE",
                  "TARGET_REVIEW_STAGE_READONLY",
                  "TOO_MANY_ATTEMPTS",
                  "OUT_OF_SUBSCRIBED_ANNOTATION_CREDITS",
                  "SSO_SIGNUP_REQUIRED",
                  "TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTS",
                  "NOTHING_TO_EXPORT",
                  "TARGET_STAGE_TYPE_INVALID",
                  "PAYMENT_NOT_SETUP",
                  "AWS_MARKETPLACE_FULFILLMENT_INCOMPLETE",
                  "MISSING_SELECT_ALL_FILTER",
                  "DUPLICATED_ITEM_FULL_PATH",
                  "UPLOAD_VIDEO_READONLY_STORAGE_MISSING_FRAME_SPECS",
                  "PATH_ALREADY_TAKEN",
                  "TARGET_ALREADY_ANNOTATED",
                  "FILTER_VALIDATION_ERROR",
                  "OPERATION_ALREADY_IN_PROGRESS",
                  "DATASET_NOT_FOUND",
                  "INVALID_URL",
                  "ALREADY_IN_WORKFLOW",
                  "ASSIGN_NOT_ALL_ITEMS_ASSIGNABLE",
                  "INCOMPATIBLE_DATASET_VERSION",
                  "ALREADY_HAS_ANNOTATIONS",
                  "BILLING_ADDRESS_INFO_MISSING",
                  "INVALID_REQUEST",
                  "GATED_FEATURE_EXTERNAL_MODEL_REGISTRATION"
                ],
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "detail": {
                "nullable": true,
                "type": "object",
                "x-struct": null,
                "x-validate": null
              },
              "message": {
                "example": "Error message",
                "nullable": true,
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "status": {
                "example": 422,
                "nullable": false,
                "type": "integer",
                "x-struct": null,
                "x-validate": null
              }
            },
            "required": [
              "message"
            ],
            "type": "object",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "errors"
        ],
        "title": "Common.APIError",
        "type": "object",
        "x-struct": "Elixir.GraphotateWeb.Schemas.Common.APIError",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemIdsContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.ItemIds"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemPathPrefix": {
        "description": "Item's path prefix to match. This filter only matches on full path segments, it's not possible to match on e.g. '/some_path' with '/some' filter.",
        "example": "/some/prefix",
        "title": "DatasetsV2.Filters.ItemPathPrefix",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemPathPrefix",
        "x-validate": null
      },
      "DatasetsV2.Filters.AssigneesContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.Assignees"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "Common.DatasetId": {
        "example": 123,
        "title": "Common.DatasetId",
        "type": "integer",
        "x-struct": "Elixir.GraphotateWeb.Schemas.Common.DatasetId",
        "x-validate": null
      },
      "DatasetsV2.Filters.StatusesContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.Statuses"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.Filters.Statuses": {
        "oneOf": [
          {
            "description": "List of General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Common.GeneralStatus"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.",
            "example": ",",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.Statuses",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.Statuses",
        "x-validate": null
      },
      "DatasetsV2.Filters.WorkflowStageIds": {
        "oneOf": [
          {
            "description": "List of Item's current workflow stage ID.",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.WorkflowStageId"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Item's current workflow stage ID.",
            "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781,e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(,[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})*$",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.WorkflowStageIds",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.WorkflowStageIds",
        "x-validate": null
      },
      "DatasetsV2.Filters.Assignees": {
        "oneOf": [
          {
            "description": "List of Item's assignee ID",
            "items": {
              "$ref": "#/components/schemas/WorkflowsV2.Item.AssigneeId"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Item's assignee ID",
            "example": "123,123",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.Assignees",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.Assignees",
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemIds": {
        "oneOf": [
          {
            "description": "List of Item's UUID",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemId"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Item's UUID",
            "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781,e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(,[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})*$",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.ItemIds",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemIds",
        "x-validate": null
      },
      "DatasetsV2.Filters.AnnotationClassIds": {
        "oneOf": [
          {
            "description": "List of Item's class ID",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.AnnotationClassId"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Item's class ID",
            "example": "123,123",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.AnnotationClassIds",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.AnnotationClassIds",
        "x-validate": null
      },
      "DatasetsV2.ItemManagement.SimpleStageCount": {
        "additionalProperties": false,
        "description": "This object represents Item count for unique {dataset_id, stage_id} tuple.",
        "properties": {
          "dataset_id": {
            "$ref": "#/components/schemas/Common.DatasetId"
          },
          "item_count": {
            "type": "integer",
            "x-struct": null,
            "x-validate": null
          },
          "stage_id": {
            "$ref": "#/components/schemas/Common.UUID"
          }
        },
        "required": [
          "stage_id",
          "dataset_id",
          "item_count"
        ],
        "title": "DatasetsV2.ItemManagement.SimpleStageCount",
        "type": "object",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.ItemManagement.SimpleStageCount",
        "x-validate": null
      },
      "DatasetsV2.Filters.FileTypes": {
        "oneOf": [
          {
            "description": "List of Type of files within the item",
            "items": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.FileType"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma separated list of Type of files within the item",
            "example": "image,image",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.FileTypes",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.FileTypes",
        "x-validate": null
      },
      "DatasetsV2.Filters.FileType": {
        "description": "Type of files within the item",
        "enum": [
          "image",
          "video",
          "pdf",
          "dicom"
        ],
        "example": "image",
        "title": "DatasetsV2.Filters.FileType",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.FileType",
        "x-validate": null
      },
      "DatasetsV2.Filters.FileTypesContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.FileTypes"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.Filters.WorkflowStageIdsContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.WorkflowStageIds"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.Filters.DatasetIds": {
        "oneOf": [
          {
            "description": "List of dataset IDs",
            "items": {
              "$ref": "#/components/schemas/Common.DatasetId"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          {
            "description": "All dataset IDs.",
            "enum": [
              "all"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          {
            "deprecated": true,
            "description": "[ DEPRECATED ] Comma seperated list of dataset IDs",
            "example": "1,2",
            "pattern": "^([0-9]+,)*([0-9]+|$)",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "DatasetsV2.Filters.DatasetIds",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.DatasetIds",
        "x-validate": null
      },
      "DatasetsV2.Filters.DatasetIdsContainer": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DatasetsV2.Filters.DatasetIds"
          }
        ],
        "x-struct": null,
        "x-validate": null
      },
      "DatasetsV2.Filters.ItemId": {
        "description": "Item's UUID",
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "DatasetsV2.Filters.ItemId",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.Filters.ItemId",
        "x-validate": null
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string",
        "x-struct": "Elixir.GraphotateWeb.Schemas.Common.UUID",
        "x-validate": null
      },
      "WorkflowsV2.Item.AssigneeId": {
        "description": "Item's assignee ID",
        "example": 123,
        "title": "WorkflowsV2.Item.AssigneeId",
        "type": "integer",
        "x-struct": "Elixir.GraphotateWeb.Schemas.WorkflowsV2.Item.AssigneeId",
        "x-validate": null
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "Prefix the value with 'ApiKey '.",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Darwin",
    "version": "1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/v2/teams/{team_slug}/items/stage_counts": {
      "get": {
        "callbacks": {},
        "description": "Returns items counts (selected by provided filters) grouped by current workflow stages.",
        "operationId": "items-stage-counts",
        "parameters": [
          {
            "description": "Team's sluggified name",
            "example": "my-team",
            "in": "path",
            "name": "team_slug",
            "required": true,
            "schema": {
              "type": "string",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "dataset_ids[]",
            "required": true,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.DatasetIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "Controls whether to include only items with/without comments",
            "in": "query",
            "name": "has_comments",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.HasComments"
            }
          },
          {
            "description": "For batch operation this filter has to be set to true if no other optional filter is provided.",
            "in": "query",
            "name": "select_all",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.SelectAll"
            }
          },
          {
            "description": "Item's path prefix to match. This filter only matches on full path segments, it's not possible to match on e.g. '/some_path' with '/some' filter.",
            "in": "query",
            "name": "item_path_prefix",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemPathPrefix"
            }
          },
          {
            "description": "Item's path prefix to match. This filter only matches on full path segments, it's not possible to match on e.g. '/some_path' with '/some' filter.",
            "in": "query",
            "name": "not_item_path_prefix",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemPathPrefix"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "item_paths[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.ItemPathsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_item_paths[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.ItemPathsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "item_ids[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.ItemIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_item_ids[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.ItemIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "item_names[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNamesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_item_names[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNamesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "Prefix of item's name",
            "in": "query",
            "name": "item_name_prefix",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNamePrefix"
            }
          },
          {
            "description": "Prefix of item's name",
            "in": "query",
            "name": "not_item_name_prefix",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNamePrefix"
            }
          },
          {
            "description": "Partial item's name",
            "in": "query",
            "name": "item_name_contains",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNameContains"
            }
          },
          {
            "description": "Partial item's name",
            "in": "query",
            "name": "not_item_name_contains",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetsV2.Filters.ItemNameContains"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "workflow_stage_ids[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.WorkflowStageIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_workflow_stage_ids[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.WorkflowStageIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "types[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.FileTypesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_types[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.FileTypesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "statuses[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.StatusesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_statuses[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.StatusesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "annotation_class_ids[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.AnnotationClassIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_annotation_class_ids[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.AnnotationClassIdsContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "current_assignees[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.AssigneesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_current_assignees[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.AssigneesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "assignees[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.AssigneesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "not_assignees[]",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DatasetsV2.Filters.AssigneesContainer"
                }
              ],
              "x-struct": null,
              "x-validate": null
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetsV2.ItemManagement.StageCountsResponse"
                }
              }
            },
            "description": "DatasetsV2.ItemManagement.StageCountsResponse"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/JsonErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/Common.APIError"
                    }
                  ],
                  "x-struct": null,
                  "x-validate": null
                }
              }
            },
            "description": "Unprocessible Entity"
          }
        },
        "summary": "Get Item counts by stages",
        "tags": [
          "Items"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://darwin.v7labs.com",
      "variables": {}
    }
  ]
}
```