List deleted records
/firm-partners/workspace/deleted-recordsReturns the records removed outright since a point in time, oldest first.
Headers
count-workspace-iduuidrequiredUUID of the client workspace to act on. It must be one of your firm's client workspaces (or the firm's own workspace) and within the API key's client workspaces.
Query parameters
updatedSincestringrequiredAn ISO 8601 date-time within the last 90 days (read as UTC when it has no offset), or the `nextUpdatedSince` value of the previous page.
resourceTypesstringoptionalComma-separated resource types to return: `account`, `bill`, `budget`, `customer`, `customer_address`, `customer_contact`, `customer_note`, `expense_receipt`, `invoice`, `journal_entry`, `person`, `product`, `project`, `recurring_invoice_template`, `tag`, `tag_group`, `task`, `tax`, `time_entry`, `transaction`, `vendor`. Omit for every type the app may read.
limitintegeroptionalRecords per page, 1–500. Defaults to 100.
Responses
200`hasMore` is true when more deletions follow; read them with `updatedSince` set to `nextUpdatedSince`.400`updatedSince` is missing or is neither a date-time nor a cursor, `resourceTypes` names an unknown type, or `limit` is outside 1–500.401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot403The key is inactive or its scope does not allow this request, the workspace is not managed by your firm or is outside the key's client workspaces, the workspace has no active subscription, or it is portal-only and the route needs bookkeeping. Troubleshoot404No workspace exists with the `count-workspace-id` UUID.410`updatedSince` is older than 90 days. Run a full load of each list endpoint again.429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). Troubleshoothttps://api.getcount.com/firm-partners/workspace/deleted-recordsimport crypto from 'node:crypto';
const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;
const method = 'GET';
const signingPath = '/workspace/deleted-records';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';
const bodyHash = '';
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');
const response = await fetch(`${BASE_URL}/firm-partners/workspace/deleted-records`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
'count-workspace-id': '5e4d3c2b-1a09-4f8e-8d7c-6b5a49382716',
},
});
console.log(await response.json());{
"status": "success",
"message": "Success on reading deleted records",
"data": {
"deletedRecords": [
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"resourceType": "tag",
"deletedAt": "2026-11-18T08:14:02.000Z"
},
{
"id": "0193a1c2-7b4d-7e10-9a2f-5c6d7e8f9a01",
"resourceType": "journal_entry",
"deletedAt": "2026-11-18T08:20:45.000Z"
}
],
"nextUpdatedSince": "cursor_eyJ1cGRhdGVkQXQiOiIyMDI2LTExLTE4VDA4OjIwOjQ1LjAwMDAwMFoiLCJyZWNvcmRVdWlkIjpudWxsfQ",
"hasMore": false
}
}