---
title: "List entities (tables, collections, etc.) in a container Example: /external-services/1/query/containers/mydb/public/entities lists tables in the public schema"
method: GET
path: "/external-services/{service_id}/query/containers/{path}/entities"
tags: ["External Services - Query"]
---

# List entities (tables, collections, etc.) in a container Example: /external-services/1/query/containers/mydb/public/entities lists tables in the public schema

`GET /external-services/{service_id}/query/containers/{path}/entities`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{service_id}/query/containers/{path}/entities`
- Auth: HTTP bearer

## Path parameters

- `service_id` integer, required
- `path` string, required

## Query parameters

- `limit` integer
- `token` string

## Response `200`

Paginated list of entities

- PaginatedEntitiesResponse
  - `count` integer, required: Number of entities returned
  - `entities` EntityResponse[], required: List of entities
    - `entity_type` string, required: Entity type (table, view, collection, etc.)
    - `name` string, required: Entity name (table/collection)
    - `row_count` integer, nullable: Approximate row count
    - `size_bytes` integer, nullable: Size in bytes (for files/objects)
  - `has_more` boolean, required: Whether there are more entities available
  - `limit` integer, required: Limit used for this request
  - `next_token` string, nullable: Continuation token for next page (S3, etc.)
  - `total` integer, nullable: Total number of entities (if available)

## Other responses

- `400`: Path is not a valid container for this data source
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Service or container not found
- `500`: Internal server error

## Changes

- **2026-10-13** `dd766bfd1f06`: 1 info
  - added the non-success response with the status `400`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:service_id/query/containers/:path/entities/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
