---
title: "Count trashed tables"
method: GET
path: "/tables/trash/length/"
tags: ["tables"]
---

# Count trashed tables

`GET /tables/trash/length/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/tables/trash/length/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Count the tables the trashed tables listing holds, under the same optional filters: a table that went to Trash with its folder is not counted.

## Query parameters

- `name__contains` string, nullable: Filter by name (case-insensitive contains).

## Response `200`

Successful Response

- TableCountSchema: The number of matching tables.
  - `count` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
