# Count the requests a change would reach (https://notert.io/docs/api/reference/count-the-requests-a-change-would-reach)

`POST /api/v1/requests/changes/count`

Counts the requests a filter keeps on the boards this token reaches that one change would still alter, as the requests list asks before changing every request it keeps. Requests merged into another are left out, and so is one the change would fill past the most tags or owners a request takes. Answers the count up to 150, whether more wait beyond it, how many it passes over as full, and asOf, the moment to send with every POST /requests/changes for this change. A POST, as the change rides in its body.

Access: A token with requests:manage.

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filters` | object | Yes | Which requests: those a filter keeps, as the requests list in the app filters them, on the boards this token reaches. Requests filed under another are left out unless subRequests is true. |
| `filters.query` | string | No | Words every request kept holds in its title, its details or its author's name. At most 200 characters. |
| `filters.statuses` | string[] | No | Only requests in these statuses. Default []. |
| `filters.boardIds` | string[] | No | Only requests on any of these boards. Default []. |
| `filters.tagIds` | string[] | No | Only requests wearing any of these tags. Default []. |
| `filters.ownerIds` | string[] | No | Only requests any of these teammates own, by their m_ ids. Default []. |
| `filters.wantedBy` | string | No | Only the requests this person filed or voted for, by person id. |
| `filters.createdAfter` | date-time | No | Only requests filed at or after this moment, with its offset. |
| `filters.createdBefore` | date-time | No | Only requests filed before this moment, with its offset. |
| `filters.exclude` | string[] | No | Which of boardIds, tagIds and ownerIds keep the requests they don't name instead: board, tag or owner. With tag, untagged requests are kept too. Default []. |
| `filters.subRequests` | boolean | No | true to keep the requests filed under another as well. Default false. |
| `filters.likelyDuplicates` | boolean | No | true for only the requests Notert found likely repeat another, which the team hasn't settled. Default false. |
| `filters.visibility` | string | No | hidden for only the requests kept off the public board, shown for only those it shows. Left out, both. One of: `hidden`, `shown`. |
| `filters.estimated` | string | No | By the day the team expects to ship each, from today: overdue, day, three_days, week, month or three_months (due by the end of it, overdue ones included), or none for no day set. One of: `overdue`, `day`, `three_days`, `week`, `month`, `three_months`, `none`. |
| `filters.timeZone` | string | No | The IANA time zone estimated counts today in, such as Europe/Oslo. UTC by default. At most 64 characters. Default "UTC". |
| `change` | object | Yes | The one change, by its kind: status, board, owners, tags, estimatedDate or hidden, with the field that kind names. Everything else each request has stays. |
| `change.kind` | value | Yes | Which change it is. |
| `change.status` | string | No | The status to move each one to. One of: `pending`, `in_review`, `planned`, `in_progress`, `completed`, `closed`. |
| `change.boardId` | string | No | The board to move each one to. At most 64 characters. |
| `change.addOwnerIds` | string[] | No | Teammates to add as owners of each one, by their m_ ids. Default []. |
| `change.removeOwnerIds` | string[] | No | Teammates to take off the owners of each one, by their m_ ids. Default []. |
| `change.addTagIds` | string[] | No | Tags to put on each one. Default []. |
| `change.removeTagIds` | string[] | No | Tags to take off each one. Default []. |
| `change.estimatedDate` | date or null | No | The day the team expects to ship each one, as YYYY-MM-DD, or null to clear it. |
| `change.hidden` | boolean | No | true to keep each one off the public board, false to show it there again. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `count` | integer | How many requests the change would still alter, up to 150, the most one change call makes. |
| `more` | boolean | Whether more than count wait beyond them. |
| `full` | integer | How many more the change would alter but passes over, as it would fill them past the most tags or owners a request takes. Each stays as it is until some are taken off it. |
| `asOf` | date-time | The moment of this count. Send it unchanged with every change call, so a request filed since stays as it is. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't change or delete requests, their status or their place on the roadmap. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/requests/changes/count \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "filters": {
    "statuses": [
      "pending"
    ],
    "tagIds": [
      "7a3e1c9b-4d2f-4b8a-9e6c-2f1d5b7a3c08"
    ]
  },
  "change": {
    "kind": "status",
    "status": "planned"
  }
}'
```

## Example response 200

```json
{
  "count": 42,
  "more": false,
  "full": 0,
  "asOf": "2026-11-10T14:05:00.123Z"
}
```
