---
title: "Count the records still attached to a project"
method: GET
path: "/projects/{id}/attached-records"
tags: ["Projects"]
---

# Count the records still attached to a project

`GET /projects/{id}/attached-records`

## Request

- Base URL: `https://app.buildworkpro.com/api/v1`
- URL: `https://app.buildworkpro.com/api/v1/projects/{id}/attached-records`
- Auth: HTTP bearer

What a sweep would touch, broken down by record type, with the total invoiced value. Answers with an empty summary rather than 404 when nothing is attached. Needs only `projects:read`: this is the count that warns a caller before deleting a project, and deleting does not require the reassignment scope.

## Path parameters

- `id` integer, required

## Response `200`

Counts

- object
  - `data` AttachedRecords, required
    - `counts` object, required
    - `total` integer, required
    - `invoiceTotal` string, required
  - `meta` ResponseMeta, required
    - `request_id` string: Server-generated request identifier
    - `pagination` PaginationMeta
      - `cursor` string, nullable, required: Opaque cursor for the next page; null when no more results
      - `has_more` boolean, required: Whether more pages are available after this one
      - `count` integer, required: Items in this page

## Other responses

- `404`: Error

---

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