---
title: "List rows in a workspace"
method: GET
path: "/api/workspaces/{slug}/rows"
tags: ["Rows"]
---

# List rows in a workspace

`GET /api/workspaces/{slug}/rows`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/workspaces/{slug}/rows`
- Auth: HTTP bearer

Returns rows from the workspace's primary table surface unless `?surface=<slug>` is passed. Newest-first by default.

## Path parameters

- `slug` string, required

## Query parameters

- `surface` string: Surface slug to scope to. Omit for the primary table surface.
- `limit` string: Page size. Default 50, max 500.
- `offset` string: Offset-based pagination cursor.

## Response `200`

Row list with total count.

- object
  - `rows` object[], required
    - `id` string, required
    - `surfaceId` string, required
    - `position` integer, required
    - `data` object, required: Cell values keyed by column id. Types match the column schema.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `createdBy` string, required: Principal id (user OR agent).
    - `updatedBy` string, required
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required

## Other responses

- `403`: Forbidden.

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
