---
title: "Count all suggestions of inventory with filters applied"
method: POST
path: "/suggestions/count"
tags: ["Suggestions"]
---

# Count all suggestions of inventory with filters applied

`POST /suggestions/count`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/suggestions/count`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/suggestions/count/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `is_archived` boolean, required

## Request body

- object[]: Applied filters, suggestions do not support complex queries
  - `column` string
  - `type` string
  - `value` string

## Response `200`

OK

- object
  - `count` number: The number of suggestions that match the filters

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `500`: Internal server error

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
