---
title: "Read rows from an entity (read-only `GET`; see [`query_data`] for the `POST` form used by the console)."
method: GET
path: "/external-services/{service_id}/query/containers/{path}/entities/{entity}/data"
tags: ["External Services - Query"]
---

# Read rows from an entity (read-only \`GET\`; see \[\`query_data\`\] for the \`POST\` form used by the console).

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

## 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/{entity}/data`
- Auth: HTTP bearer

The AI assistant reads through this with the user's own permissions; its
reads are audited — see [`temps_core::ai_tool_call::AiToolCall`].

## Path parameters

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

## Query parameters

- `filter` string
- `limit` integer
- `offset` integer
- `sort_by` string
- `sort_order` string

## Response `200`

Query results

- QueryDataResponse
  - `execution_time_ms` integer, required: Query execution time in milliseconds
  - `fields` FieldResponse[], required: Field definitions
    - `field_type` string, required: Field type (Int32, String, Timestamp, etc.)
    - `name` string, required: Field name
    - `nullable` boolean, required: Whether the field is nullable
  - `returned_count` integer, required: Number of rows returned in this response
  - `rows` unknown[], required: Data rows (array of JSON objects)
    - unknown
  - `total_count` integer, required: Total number of rows matching the query (before limit/offset)
  - `truncated` boolean, required: Whether rows were dropped from this response to stay inside the byte budget. `returned_count` is always the number of rows actually present, so a truncated page is still internally consistent — but a caller comparing it against the requested limit would otherwise conclude the table simply ended. Reported explicitly so a partial page is never mistaken for a complete one, by a human, a script, or a model reading a tool result.

## Other responses

- `400`: Invalid query or filter
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Service, container, or entity not found
- `500`: Internal server error

## Changes

- **2026-09-07** `8be6c67df066`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api removed without deprecation
- **2026-08-07** `40a1b1868976`: 1 info
  - endpoint added
- **2026-08-07** `e54bb747f9bf`: 1 breaking
  - api removed without deprecation
- **2026-08-06** `dbccb47d373a`: 1 info
  - added the required property `truncated` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:service_id/query/containers/:path/entities/:entity/data/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)
