List tables in namespace
client.r2DataCatalog.namespaces.tables.list(stringbucketName, stringnamespace, TableListParams { account_id, page_size, page_token, 2 more } params, RequestOptionsoptions?): TableListResponse { identifiers, details, next_page_token, table_uuids }
GET/accounts/{account_id}/r2-catalog/{bucket_name}/namespaces/{namespace}/tables
Returns a list of tables in the specified namespace within an R2 catalog. Supports pagination for efficient traversal of large table collections.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
List tables in namespace
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const tables = await client.r2DataCatalog.namespaces.tables.list('my-data-bucket', 'bronze', {
account_id: '0123456789abcdef0123456789abcdef',
});
console.log(tables.identifiers);{
"errors": [],
"messages": [],
"result": {
"details": [
{
"created_at": "2025-10-07T10:00:00Z",
"identifier": {
"name": "events",
"namespace": [
"bronze"
]
},
"location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id/",
"metadata_location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id/metadata/v1.metadata.json",
"table_uuid": "0199b9a1-28a0-71e0-a73e-b0fc32c8468e",
"updated_at": "2025-10-07T15:00:00Z"
},
{
"created_at": "2025-10-07T10:30:00Z",
"identifier": {
"name": "users",
"namespace": [
"bronze"
]
},
"location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id-2/",
"metadata_location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id-2/metadata/v2.metadata.json",
"table_uuid": "0199b9a1-3c74-7731-bf53-d8c67ead079d",
"updated_at": "2025-10-07T16:00:00Z"
}
],
"identifiers": [
{
"name": "events",
"namespace": [
"bronze"
]
},
{
"name": "users",
"namespace": [
"bronze"
]
}
],
"next_page_token": null,
"table_uuids": [
"0199b9a1-28a0-71e0-a73e-b0fc32c8468e",
"0199b9a1-3c74-7731-bf53-d8c67ead079d"
]
},
"success": true
}Returns Examples
{
"errors": [],
"messages": [],
"result": {
"details": [
{
"created_at": "2025-10-07T10:00:00Z",
"identifier": {
"name": "events",
"namespace": [
"bronze"
]
},
"location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id/",
"metadata_location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id/metadata/v1.metadata.json",
"table_uuid": "0199b9a1-28a0-71e0-a73e-b0fc32c8468e",
"updated_at": "2025-10-07T15:00:00Z"
},
{
"created_at": "2025-10-07T10:30:00Z",
"identifier": {
"name": "users",
"namespace": [
"bronze"
]
},
"location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id-2/",
"metadata_location": "s3://my-bucket/__r2_data_catalog/wh-id/table-id-2/metadata/v2.metadata.json",
"table_uuid": "0199b9a1-3c74-7731-bf53-d8c67ead079d",
"updated_at": "2025-10-07T16:00:00Z"
}
],
"identifiers": [
{
"name": "events",
"namespace": [
"bronze"
]
},
{
"name": "users",
"namespace": [
"bronze"
]
}
],
"next_page_token": null,
"table_uuids": [
"0199b9a1-28a0-71e0-a73e-b0fc32c8468e",
"0199b9a1-3c74-7731-bf53-d8c67ead079d"
]
},
"success": true
}