---
title: List my table templates
url: https://anyrow.ai/docs/api/table-templates/list-mine
canonical_url: https://anyrow.ai/docs/api/table-templates/list-mine
---

# List my table templates

`GET /v1/table-templates/mine`

Authentication: `Authorization: ApiKey {your_api_key}`.

## Query parameters

- `cursor` (string, optional): Opaque cursor for forward pagination. Pass the nextCursor from the previous response with the same order. Takes precedence over page when both are sent.
- `page` (integer, optional): 1-based page number for offset pagination. Ignored when cursor is present. At least 1.
- `order` (string, optional): Sort keys, comma-separated, each `field[.asc|.desc][.nullsfirst|.nullslast]`; at most 3. Sortable: category, created_at, name, updated_at, usage_count. Default: category.desc. Nulls sort last ascending and first descending unless stated. Matches `^(?:category|created_at|name|updated_at|usage_count)(?:\.(?:asc|desc))?(?:\.(?:nullsfirst|nullslast))?(?:,(?:category|created_at|name|updated_at|usage_count)(?:\.(?:asc|desc))?(?:\.(?:nullsfirst|nullslast))?){0,2}$`.
- `filter` (string, optional): Filter expression `field.op.value`; `,` joins conditions with AND; group with `or(...)` and `and(...)`. Fields: category (enum: eq, ne, neq, in, nin, is); created_at (number: eq, ne, neq, gt, gte, lt, lte, in, nin, is); id (string: eq, ne, neq, like, ilike, in, nin, is); name (string: eq, ne, neq, like, ilike, in, nin, is). `like` is case-sensitive and `ilike` ignores ASCII case; `*` is the wildcard. `in`/`nin` take `(a,b)`; `is` takes `null` or `notnull`. At most 20 conditions, 3 nested groups, 100 in/nin values.
- `q` (string, optional): Free-text search over: name, description, creator_display_name. Whitespace-separated terms must all match. Up to 200 characters.
- `select` (string, optional): PostgREST-style sparse fieldset. Scalars comma-separated; relations embedded as name(fields); wildcard * selects all scalars. Docs: https://docs.postgrest.org/en/stable/references/api/resource_embedding.html Up to 500 characters.
- `limit` (integer, optional): Maximum number of items per page. Defaults to 20, capped by the endpoint's maxLimit. Defaults to `20`. Between 1 and 100.

## Returns

200 `application/json`.

- `count` (integer, required): At least 0.
- `hasMore` (boolean, required)
- `limit` (integer, required): At least 1.
- `nextCursor` (string, required, nullable)
- `page` (integer, required, nullable): At least 1.
- `templates` (array of objects, required)
  - `created_at` (integer, required): At least 0.
  - `updated_at` (integer, required): At least 0.
  - `id` (string, required): 1 to 48 characters.
  - `category` (string, required): Up to 64 characters.
  - `columns_json` (array of objects, required): 1 to 100 items.
    - `currency_code` (string, optional): Exactly 3 characters.
    - `default` (any, optional)
    - `description` (string, optional, nullable): Up to 256 characters.
    - `id` (string, required): 1 to 36 characters.
    - `instruction` (string, optional, nullable): Up to 512 characters.
    - `name` (string, required): 1 to 64 characters. Matches `^[\w\s.-]+$`.
    - `options` (array of strings, optional): Up to 500 items.
    - `required` (boolean, required): Defaults to `false`.
    - `searchable` (boolean, optional)
    - `type` (string, required): One of `array`, `boolean`, `currency`, `date`, `email`, `enum`, `multi_select`, `number`, `string`, `text`, `url`. Defaults to `string`.
  - `creator_display_name` (string, required, nullable): Up to 101 characters.
  - `creator_user_id` (string, required, nullable): Up to 48 characters.
  - `description` (string, required, nullable): Up to 512 characters.
  - `insert_mode` (string, required): One of `append`, `dedup`, `merge`, `replace`.
  - `instruction` (string, required, nullable): Up to 512 characters.
  - `merge_columns_json` (array of strings, required, nullable): At least 1 items.
  - `name` (string, required): Up to 128 characters.
  - `strictness` (string, required): One of `strict`, `balanced`, `flexible`.
  - `usage_count` (integer, required): At least 0.

## Errors

- 404: `not_found`

Errors every endpoint can return: [Errors](https://anyrow.ai/docs/api/errors.md).

## Request

```ts title="Node.js"
import { AnyrowSDK } from "@anyrow/sdk"

const anyrow = new AnyrowSDK({
  baseURL: "https://api.anyrow.ai",
  headers: { Authorization: `ApiKey ${process.env.ANYROW_API_KEY}` },
})

const { data, error } = await anyrow.tableTemplate.listMine({})
```

```bash title="cURL"
curl 'https://api.anyrow.ai/v1/table-templates/mine' \
  -H 'Authorization: ApiKey {your_api_key}'
```

```js title="JavaScript"
const response = await fetch("https://api.anyrow.ai/v1/table-templates/mine", {
  headers: {
    Authorization: "ApiKey {your_api_key}",
  },
})
const data = await response.json()
```

```python title="Python"
import requests

response = requests.get(
    "https://api.anyrow.ai/v1/table-templates/mine",
    headers={
        "Authorization": "ApiKey {your_api_key}",
    },
)
print(response.json())
```

## Response

```json title="200"
{
  "count": 0,
  "hasMore": true,
  "limit": 1,
  "nextCursor": "string",
  "page": 1,
  "templates": [
    {
      "created_at": 1711468800000,
      "updated_at": 1711468800000,
      "id": "ttmpl_01h5a3g8k9m2n4p6q8r0t2v4x6",
      "category": "string",
      "columns_json": [
        {
          "currency_code": "string",
          "description": "string",
          "id": "string",
          "instruction": "string",
          "name": "string",
          "options": [
            "string"
          ],
          "required": false,
          "searchable": true,
          "type": "string"
        }
      ],
      "creator_display_name": "string",
      "creator_user_id": "string",
      "description": "string",
      "insert_mode": "append",
      "instruction": "string",
      "merge_columns_json": [
        "string"
      ],
      "name": "string",
      "strictness": "strict",
      "usage_count": 42
    }
  ]
}
```
