---
title: "Get the number of tables"
method: GET
path: "/tables/length/"
tags: ["tables"]
---

# Get the number of tables

`GET /tables/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/length/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Get the number of the organisation's tables under the same optional filters.

## Query parameters

- `name__contains` string, nullable: Filter by name (case-insensitive contains).
- `created_at__after` string, date-time, nullable: Filter by created_at after this instant (ISO 8601).
- `created_at__before` string, date-time, nullable: Filter by created_at before this instant (ISO 8601).
- `owner_user_id` string, nullable: Filter to tables this workspace member owns.
- `unowned` boolean: Only tables that nobody owns.
- `folder_id` string, uuid, nullable: Only the tables directly in this folder. Leave it and top_level out to reach every folder, as search does.
- `top_level` boolean: Only the tables in no folder: the top level of the Tables list.
- `archived` 'exclude' | 'include' | 'only': Which tables a listing reaches, as far as the archive goes.

## 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/dc5ac3c84444?raw)
