---
title: "List containers at the root level (databases, keyspaces, etc.)"
method: GET
path: "/external-services/{service_id}/query/containers"
tags: ["External Services - Query"]
---

# List containers at the root level (databases, keyspaces, etc.)

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

## 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`
- Auth: HTTP bearer

## Path parameters

- `service_id` integer, required

## Response `200`

List of root containers

- ContainerResponse[]
  - `can_contain_containers` boolean, required: Can this container hold other containers?
  - `can_contain_entities` boolean, required: Can this container hold entities (tables, collections, etc.)?
  - `child_container_type` string, nullable: Type of child containers (if can_contain_containers is true)
  - `container_type` string, required: Container type (database, schema, keyspace, bucket, etc.)
  - `entity_count_hint` string, nullable: Hint for UI on expected entity count (small = sidebar, large = pagination)
  - `entity_type_label` string, nullable: Label for entity type (if can_contain_entities is true)
  - `metadata` unknown, required
  - `name` string, required: Container name

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Service not found
- `500`: Internal server error

---

[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)
